FAQ   Search   Memberlist  
Profile    Log in to check your private messages    Register    Log in
/sbin -directory

 
Post new topic   Reply to topic    BLAG Forum Index -> support
View previous topic :: View next topic  
Author Message
matti
PostPosted: Mon Aug 09, 2004 6:00 pm    Post subject: /sbin -directory Reply with quote

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
PostPosted: Mon Aug 09, 2004 6:10 pm    Post subject: Reply with quote

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
PostPosted: Mon Aug 09, 2004 8:01 pm    Post subject: Reply with quote

How do I add it to my path? To .bash_profile like java?

Matti

jebba
PostPosted: Tue Aug 10, 2004 12:48 am    Post subject: Reply with quote

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:

Code:
. ~/.bashrc


Note the initial "."



Last edited by jebba on Tue Aug 10, 2004 9:34 am; edited 1 time in total
matti
PostPosted: Tue Aug 10, 2004 7:52 am    Post subject: Reply with quote

Thanks jebba. That worked.

Matti

Display posts from previous:   
Post new topic   Reply to topic    BLAG Forum Index -> support
Page 1 of 1

Protected by Anti-Spam ACP