You are not logged in.
Pages: 1
I have to set the $PATH variable to also include /opt/games.
How do i do that?
I tried adding
export $PATH="/opt/games" to my .bashrc, but that just gives me some errors. Can anybody tell me what i've done wrong?
Southern_Trendkiller
Offline
i think another way to edit your PATH is to add it to the /etc/profile - file
Offline
Thanks man, that was just the file i was looking for
Everything is working the way i want it, now.
Thanks again!
Offline
Wherever you do it, the command is
export PATH="/foo:/bar: (etc)"
Note no $ sign.
Offline
Southern_Trendkiller: your first attempt overrides the PATH variable completely. To add /opt/games to your path, the way to do it in bash is
export PATH="$PATH:/opt/games"
Offline
oh... i was unaware of the fact that i was overriding the PATH variable that way. Thanks for pointing it out.
Offline
Hi, I'm just trying to set the PATH too, but I think this way will modify the PATH globally isn't?, what if I want to modify the PATH for my User account only, where I need to do it?
Thanks.
Offline
do it in your /home/username/.bashrc
Offline
Pages: 1