Possible Duplicate:How can I make a program executable from everywhere So, I'm new to Linux/Unix and am working in a corporate version of Red Hat at my company. Obviously I don't have full control over my computer (not sure if that matters).I have a bunch of executables located in some folder.I want to be able to run these programs from any other directory.How can I make this happen? Some sort of bash profile file maybe? If so, where would that be located?
add directory to shell profile
bash;shell;profile;konsole
For this to work you add the /path/to/executables to the $PATH variable, to make this a default setting you add it to one of bash'es startup files, .bash_profile is probably the most appropriate one. Add the following line to $HOME/.bash_profile: export PATH=${PATH}:/path/to/executables Or if a PATH line already exists in .bash_profile, append or prepend /path/to/executables to it. Each of the path elements are searched in order, so if you want to override some commands, put your path first.