Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-27-2004, 01:35 AM   #1
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.

Old 10-27-2004, 02:05 AM   #2
Registered: Apr 2003
Distribution: Xubuntu
Posts: 112

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 02:09 AM.
Old 10-27-2004, 02:08 AM   #3
Registered: Jul 2004
Location: louisiana
Distribution: fedora 4/kubuntu
Posts: 116

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

Original Poster
Rep: Reputation: 15

ps its colon not semi-colon


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:54 PM
adding to path hamish Linux - Software 8 02-05-2004 11:03 PM
Adding to the $PATH chri5 Linux - Newbie 8 11-14-2003 11:38 AM
Adding an entry to the PATH Pimple Solaris / OpenSolaris 6 09-25-2003 01:40 PM
adding to $PATH snocked Slackware 17 08-26-2003 01:12 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:47 PM.

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