LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   new path to $PATH (https://www.linuxquestions.org/questions/linux-software-2/new-path-to-%24path-809311/)

brgsousa 05-21-2010 09:33 AM

new path to $PATH
 
Hi!
How can I add a path to $PATH?
(debian)

regards

colucix 05-21-2010 09:48 AM

On a per-user basis you can add the following to $HOME/.bashrc (if using bash):
Code:

export PATH=/path/to/add:${PATH}
Note that the order of directories is important in the PATH variable: the shell scans directories in the specified order and if you have two executables with the same name, the first encountered is the one executed.

catkin 05-21-2010 09:54 AM

Typing your question into Google finds answers OK. Here they are.


All times are GMT -5. The time now is 03:58 PM.