View previous topic :: View next topic |
Author |
Message |
lordbelial n00b
Joined: 18 Jul 2003 Posts: 47
|
Posted: Tue Jan 11, 2005 9:20 pm Post subject: PATH? |
|
|
I was reading a post said to
Quote: | put it somewhere in my PATH so that I don't have to type the directory that it's in every time. |
Whats PATH and how do I do it? _________________ Gentoo
Athlon64 X2 3200+
2GB DDR2
GeForce 7900GS
--------------------------------------------------------
"It's only a gambling habit if you lose." |
|
Back to top |
|
|
mosquito Tux's lil' helper
Joined: 13 Dec 2004 Posts: 110
|
Posted: Tue Jan 11, 2005 9:42 pm Post subject: |
|
|
a path is the directories to a certain programe or file:
ex:
/usr/bin/firefox
is the path to firefox. |
|
Back to top |
|
|
lordbelial n00b
Joined: 18 Jul 2003 Posts: 47
|
Posted: Tue Jan 11, 2005 9:50 pm Post subject: |
|
|
Where do I setup my system to be able to run a program no matter what directory Im in. E.G. to be able to run a game from any directory without having to go to that directory first. _________________ Gentoo
Athlon64 X2 3200+
2GB DDR2
GeForce 7900GS
--------------------------------------------------------
"It's only a gambling habit if you lose." |
|
Back to top |
|
|
mosquito Tux's lil' helper
Joined: 13 Dec 2004 Posts: 110
|
Posted: Tue Jan 11, 2005 10:02 pm Post subject: |
|
|
you can make a symlink in /usr/bin or /usr/sbin to the programfile:
cd /usr/bin
ln -s /path/to/programe
then it should be possible for all users to run the programe nomatter what path you are at. |
|
Back to top |
|
|
mosquito Tux's lil' helper
Joined: 13 Dec 2004 Posts: 110
|
Posted: Tue Jan 11, 2005 10:09 pm Post subject: |
|
|
forgot to tell you need to be root to make the symlink |
|
Back to top |
|
|
abcdefg Apprentice
Joined: 29 Feb 2004 Posts: 216 Location: The Netherlands
|
Posted: Tue Jan 11, 2005 10:22 pm Post subject: |
|
|
lordbelial wrote: | Where do I setup my system to be able to run a program no matter what directory Im in. E.G. to be able to run a game from any directory without having to go to that directory first. |
To see waht directorys are in your path type
You can add direcotries to your path, for instance the game directory
Code: | export PATH=$PATH:/usr/games/bin |
Now every executable file in /ust/games/bin can be runned without being in /usr/games/bin
If you want your path to be like this every time you start a terminal you can add the line to your ~/.bashrc or edit /etc/profile |
|
Back to top |
|
|
|