LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   path (https://www.linuxquestions.org/questions/linux-newbie-8/path-212707/)

lyar1031 08-02-2004 09:06 PM

path
 
I have a question about the path.

I am going to modify .bash_profile to add something to my path

this is what I put in the file

"Path=/usr/libexec/openssh/"

and as a result I could not log into Redhat as myself...Had to log in as root them update the .bash_profile by removig the above Path...

After that everything worked fine!

I was wondering why I could not add this to my path?

Thanks

Tinkster 08-02-2004 09:22 PM

export PATH="$PATH:/usr/libexec/openssh/"


Cheers,
Tink

mikshaw 08-03-2004 09:39 AM

Quote:

I was wondering why I could not add this to my path?
What you had done was not ADDING TO the path, but instead was REPLACING the path.
As Tinkster wrote it, you include the current path ($PATH) in your new path so you don't lose anything that's already there.


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