Welcome to the most active Linux Forum on the web.
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 07-09-2005, 12:44 PM   #1
Registered: Jul 2005
Location: Wisconsin
Distribution: Slackware 10.2
Posts: 35

Rep: Reputation: 15
editing $PATH

okay, so, earlier i had a problem with finding a command, and once i found it (in /sbin , if you were wondering), i tried adding it to my $PATH (while i had root powers). but, this is apparantly only a temporary fix, and the next time i reboot, the $PATH is back to its normal, incomplete self. is there someplace that i can make it so that it loads /sbin into the path everytime the computer boots?

thanks for the help
Old 07-09-2005, 01:30 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
Edit your /home/$user/.bash_profile or .bashrc and or the /etc/profile to include the new directory in your $PATH
Old 07-09-2005, 09:20 PM   #3
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
That is, add the following line to one of those files:

export PATH=$PATH:/sbin
Old 07-09-2005, 10:33 PM   #4
Registered: Jul 2005
Location: Wisconsin
Distribution: Slackware 10.2
Posts: 35

Original Poster
Rep: Reputation: 15
alright, thanks, i shall do that


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
Editing Path and LD_LIBRARY_PATH Nappa Slackware 5 11-24-2003 12:14 AM
PATH statement editing? cottonmouth Linux - General 2 08-17-2003 09:00 PM
Editing my $PATH variable bml Linux - General 6 03-25-2003 09:14 PM
PATH editing... Jester888 Linux - Newbie 2 01-23-2002 09:13 PM
Editing the PATH Cichlid Linux - General 3 01-06-2002 08:47 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:20 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