Making softwares usable across all directories
1
0
Entering edit mode
5.8 years ago

Hi, I have downloaded Velvet software from the EMBL website. The folder is now in my Desktop. I want to access the software from all the other directories also. Do I just transfer just the executable file of velvet to the /bin folder or is there any other way to do this? Thanks for your help.

assembly linux • 782 views
ADD COMMENT
1
Entering edit mode
ADD REPLY
3
Entering edit mode
5.8 years ago
ATpoint 82k

There is a concept in Linux, named PATH.

Just write the following into your ~/.bash_profile:

export PATH=$PATH:/path/to/velvet_folder_that_contains_the_executable

After then running source ~/.bash_profile, simply entering the name of the executable is sufficient to call the program.

ADD COMMENT
0
Entering edit mode

Thanks for your answer ! This works. So, if I have different software in different directories, can I still use the variable $PATH or should I modify it every time ?

ADD REPLY
1
Entering edit mode

You can pass as many directories to PATH as you like, or alternatively, copy the executables to a common directory where you collect all your executables, like /usr/bin/ or something like $HOME/local/bin

ADD REPLY
0
Entering edit mode

Okay ! Thanks for your help.

ADD REPLY

Login before adding your answer.

Traffic: 2223 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