LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to set the $PATH on command line? (https://www.linuxquestions.org/questions/programming-9/how-to-set-the-%24path-on-command-line-113264/)

huangyanfeng 11-06-2003 09:39 PM

How to set the $PATH on command line?
 
export? set? or else?

I tried 'set PATH=/bin/' but not work.

exodist 11-06-2003 09:43 PM

export PATH="path stuff"
or to ADD to the path:
export PATH="$PATH; added stuff"

Skyline 11-07-2003 12:48 AM

You'll need a colon not a semi.

For example

PATH=$PATH:/home/John/progs

export PATH

exodist 11-07-2003 12:59 AM

ooops, my bad sorry about that


All times are GMT -5. The time now is 01:06 PM.