LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Setting a path on Linux (https://www.linuxquestions.org/questions/linux-newbie-8/setting-a-path-on-linux-865/)

penguin 02-14-2001 03:54 AM

Hi, I have Linux RedHat 7.0 and a book called Linux for Newbie but it doesn't say anything about how to configure a path for users or to add something to a path.

can someone tell me how and recommend a book?

thanks a lot

devnull 02-14-2001 05:28 AM

If you want to make systemwide changes to your path, you have to do it in /etc/profile.
But it is better to adjust the path settings in the users home directoy by editing the ".bash_profile" (if you are using the bash).
Add new path to the line "PATH=$PATH:$HOME/.....:/
After editing this file you have to "source" it with the following command: ". ./.bash_profile". By doing so, the .bash_profile is beeing re-read by the shell.

For documentation take a look at http://www.linuxdoc.org. There you will find most of the stuff you need.

cu


All times are GMT -5. The time now is 04:33 PM.