LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   PATH statement editing? (https://www.linuxquestions.org/questions/linux-general-1/path-statement-editing-82928/)

cottonmouth 08-17-2003 06:35 PM

PATH statement editing?
 
How can I view and edit the PATH statement?

Dark_Helmet 08-17-2003 06:55 PM

To display your PATH variable, at a command-line, type:

echo $PATH


To edit your PATH variable, open a text editor, then open the .bash_profile file in your home directory. You should see a line like:

PATH=$PATH:$HOME/bin

Change that line to include what you want. If, for instance, you wanted to include /usr/local/test/bin to the path, change the above line to:

PATH=$PATH:$HOME/bin:/usr/local/test/bin

Save the file, log out, and log back in.

js_530 08-17-2003 08:00 PM

If you want to enable it for only the session, type "export PATH=<etc>"


All times are GMT -5. The time now is 09:02 AM.