PATH statement editing?
How can I view and edit the PATH statement?
|
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. |
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. |