|
|
|
#1
|
|||
|
|||
|
How do I permanently change the PATH in Linux?
Another n00b Linux question: how do I make a permanent change to the PATH in Linux?
I can do the PATH=<change>:$PATH bit just fine, but it only lasts as long as that terminal session. SETENV apparently is not a valid Bash command. There has to be a startup file somewhere that holds the environment data, but I'm clueless where to find it. Help, please... |
| Advertisements | |
|
|
|
|
#2
|
|||
|
|||
|
Quote:
|
|
#3
|
|||
|
|||
|
Quote:
|
|
#4
|
|||
|
|||
|
Note that this only changes things for scripts you run under your normal login ID. If you want scripts run under other login IDs (such as root) to see the changed path, put the line in /etc/profile. You will need to use sudo to edit the file.
Never do normal stuff logged in as root. In fact, never log in as root at all. Log in as a normal user and use sudo to do stuff only root can do.
__________________
"Ridicule is the only weapon that can be used against unintelligible propositions. Ideas must be distinct before reason can act upon them." If you don't stop to analyze the snot spray, you are missing that which is best in life. - Miller I'm not sure why this is, but I actually find this idea grosser than cannibalism. - Excalibre, after reading one of my surefire million-seller business plans. |
|
#5
|
|||
|
|||
|
Quote:
export PATH=/new/path:${PATH} or put them on separate lines PATH=/new/path:${PATH} export PATH Last edited by Earthworm Jim; 09-27-2007 at 03:17 PM. |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|