LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 03-14-2004, 02:34 PM   #1
jc80
LQ Newbie
 
Registered: Mar 2004
Location: Raleigh NC
Posts: 16

Rep: Reputation: 0
bash: command not found


I was previously using Mandrake 9.2. Any time I entered a command in the /sbin directory it worked. Now I'm using Fedora core 1 and I always get the error:
Bash: <command>: Command not found.

I ls the directory and the command I entered is right there staring me in the face.

What could be causing this? I entered the command as root and as a user, neither worked.
 
Old 03-14-2004, 02:41 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Chances are that /sbin isn't in your PATH:
echo $PATH
 
Old 03-14-2004, 02:59 PM   #3
jc80
LQ Newbie
 
Registered: Mar 2004
Location: Raleigh NC
Posts: 16

Original Poster
Rep: Reputation: 0
I'm sorry I forgot to mention that I'm sort of new to the Linux area. So what you're saying is that I have to add /sbin to my path? could you explain in a little more detail how I would do that?
 
Old 03-14-2004, 03:11 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
You can add it to your path with:
export PATH="/sbin:"$PATH

To make the changes take effect for each new shell you will need to add that command to one of your shell startup files like ~/.bash_profile
 
  


Reply


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
Bash: command not found! Adil_uk Linux - General 14 04-09-2012 01:04 AM
bash: g++: command not found m_lp_ql_m Linux - Software 8 07-08-2010 01:45 PM
bash: pg: command not found Chomper Programming 2 02-05-2005 02:22 AM
-bash: cp: command not found johnlittlepeap Fedora 2 11-15-2004 08:52 AM
bash -command not found- K3V Linux - Newbie 7 09-30-2004 03:57 PM


All times are GMT -5. The time now is 04:57 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration