BLAG

BLAG Forums
It is currently Sun Dec 21, 2014 4:41 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: /sbin -directory
PostPosted: Mon Aug 09, 2004 6:00 pm 
Offline

Joined: Fri Aug 06, 2004 10:34 am
Posts: 19
Location: Vaasa, Finland
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 09, 2004 6:10 pm 
Offline
Site Admin

Joined: Sun Mar 14, 2004 6:08 pm
Posts: 973
Location: Canada
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).


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 09, 2004 8:01 pm 
Offline

Joined: Fri Aug 06, 2004 10:34 am
Posts: 19
Location: Vaasa, Finland
How do I add it to my path? To .bash_profile like java?

Matti


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 10, 2004 12:48 am 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
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.

Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 10, 2004 7:52 am 
Offline

Joined: Fri Aug 06, 2004 10:34 am
Posts: 19
Location: Vaasa, Finland
Thanks jebba. That worked.

Matti


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group