|
| View previous topic :: View next topic |
| Author |
Message |
matti
|
Posted: Mon Aug 09, 2004 6:00 pm Post subject: /sbin -directory |
|
|
When I start a program by just typing its name to gnome-terminal it usually starts. Why doesn't programs that are in /sbin -directory start like that. I have to go to /sbin and start every program there with ./ in front of it. How can I change this? I'm using BLAG 19999.00071.
Matti
|
|
|
 |
stevo32
|
Posted: Mon Aug 09, 2004 6:10 pm Post subject: |
|
|
because they aren't in your path
|
_________________ E-mail me at s.clement@localhost (replace localhost with sympatico.ca) or stevo32@localhost (replace localhost with blagblagblag.org). |
|
 |
matti
|
Posted: Mon Aug 09, 2004 8:01 pm Post subject: |
|
|
How do I add it to my path? To .bash_profile like java?
Matti
|
|
|
 |
jebba
|
Posted: Tue Aug 10, 2004 12:48 am Post subject: |
|
|
edit ~/.bashrc and add a line like this:
| Code: | | PATH=$PATH:/usr/sbin:/sbin |
then: logout&login
Or if you don't want to log out&in do:
Note the initial "."
Last edited by jebba on Tue Aug 10, 2004 9:34 am; edited 1 time in total |
|
|
 |
matti
|
Posted: Tue Aug 10, 2004 7:52 am Post subject: |
|
|
Thanks jebba. That worked.
Matti
|
|
|
 |
|
|
|