where to keep scripts for new software
0
0
Entering edit mode
4.2 years ago
ATCG ▴ 370

When downloading software in a unix system to a bin directory $HOME/bin a new directory containing the scripts is created $HOME/bin/packagedir adding this to the path everytime you download a new package makes the $PATH long and complicated. Would you advice to transfer all the scripts from the original package dir to the $HOME/bin this way all scripts are visible if bin is in the path? Thanks

$PATH Unix install • 863 views
ADD COMMENT
1
Entering edit mode

Not really a bioinformatics question, but I'd suggest creating a symlink to $HOME/bin/ This also allows you to keep your downloaded software in another location, or multiple locations, to keep everything tidy.

ADD REPLY
0
Entering edit mode

Yes,I apologize if this is not within the bioinformatics subject, but it is certainly a fundamental (basic but fundamental) concept also used in bioinformatics.

How can one create a symlink from $HOME/path/to/package to $HOME/bin
Thank you!!

ADD REPLY
0
Entering edit mode

Google “symlinking” or “softlinking”.

ADD REPLY
0
Entering edit mode

I’d add that I think it’s perfectly normal for a PATH to become long and complicated, particularly if you rely on local installs instead of system wide.

A good approach is to have each element of the PATH as a separate export command in one of your dotfiles (commonly .bashrc or .profile). It’s then pretty trivial to excise/rearrange the elements by reordering the exports.

ADD REPLY

Login before adding your answer.

Traffic: 1442 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6