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?
i think another way to edit your PATH is to add it to the /etc/profile - file
Thanks man, that was just the file i was looking for
Everything is working the way i want it, now.
Wherever you do it, the command is
export PATH="/foo:/bar: (etc)"
Note no $ sign.
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
oh... i was unaware of the fact that i was overriding the PATH variable that way. Thanks for pointing it out.
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?