LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-27-2004, 12:35 AM   #1
poiuytrewq
Member
 
Registered: Jul 2004
Posts: 107

Rep: Reputation: 15
adding to $PATH


how do i perminintly add to my bash $PATH? it does not have /usr/sbin so it is a bit of a pain every time i want to run something from there.

thanks
 
Old 10-27-2004, 01:05 AM   #2
thrice
Member
 
Registered: Apr 2003
Distribution: Xubuntu
Posts: 113

Rep: Reputation: 15
export PATH=$PATH;/usr/sbin should do it

actually....i'm having a brain fart and can't remember whether the directories in path are delimited with a ; or a : run 'set' in console and see what are in between the directories in the PATH variable.. i'd take a quick look right now, but i'm not at my computer.

Last edited by thrice; 10-27-2004 at 01:09 AM.
 
Old 10-27-2004, 01:08 AM   #3
dugas
Member
 
Registered: Jul 2004
Location: louisiana
Distribution: fedora 4/kubuntu
Posts: 116

Rep: Reputation: 15
edit .bashrc
 
Old 10-27-2004, 01:32 AM   #4
poiuytrewq
Member
 
Registered: Jul 2004
Posts: 107

Original Poster
Rep: Reputation: 15
thanks

ps its colon not semi-colon
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a PATH in SuSE 8.2 Nokia Linux - Software 1 08-25-2004 03:54 PM
adding to path hamish Linux - Software 8 02-05-2004 10:03 PM
Adding to the $PATH chri5 Linux - Newbie 8 11-14-2003 10:38 AM
Adding an entry to the PATH Pimple Solaris / OpenSolaris 6 09-25-2003 12:40 PM
adding to $PATH snocked Slackware 17 08-26-2003 12:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration