LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-16-2007, 09:56 PM   #1
matrim
Member
 
Registered: Dec 2002
Location: utah
Distribution: Redhat; Fedora 2, 6
Posts: 114

Rep: Reputation: 15
root commands like fdisk not working


I had to reinstall Fedora, and I think im just doing something stupid, but now most commands like fdisk won't work. I get a 'command not found'. Can someone help me figure it out?
 
Old 03-16-2007, 10:06 PM   #2
sn68
Member
 
Registered: Oct 2005
Distribution: FC5
Posts: 338

Rep: Reputation: 30
>/sbin/fdisk -l will work

/sbin is not in your PATH now whereas it would have been earlier, to see what is there in PATH type
>$PATH
 
Old 03-16-2007, 10:12 PM   #3
matrim
Member
 
Registered: Dec 2002
Location: utah
Distribution: Redhat; Fedora 2, 6
Posts: 114

Original Poster
Rep: Reputation: 15
Thanks.

I get this weird thing when i type $PATH:

bash: /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin: No such file or directory
 
Old 03-16-2007, 10:26 PM   #4
sn68
Member
 
Registered: Oct 2005
Distribution: FC5
Posts: 338

Rep: Reputation: 30
These are multiple paths seperated by :, one of the path does not exist so the error message of "no such file or directory"
you can check out path in .bashrc or .bash_profile, there will be seperate files for user & root
 
  


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
Root/User rights to Root commands? mrde50garfield Linux - Software 2 10-24-2006 05:42 AM
fdisk -l is not working. spfdz Linux - Software 1 05-04-2006 11:45 AM
fdisk -l ain't working for me... ender42 Ubuntu 3 02-26-2006 10:10 AM
fdisk is not working LinuxPadawan Linux - Software 3 04-06-2005 06:21 PM
fdisk -l has stopped working Bruce Hill Slackware 42 09-06-2004 08:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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