LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-06-2004, 12:02 AM   #1
nigham
Member
 
Registered: Oct 2003
Location: Singapore
Distribution: Fedora Core 2
Posts: 32

Rep: Reputation: 15
can't find fdisk?


i am running red hat 8 but i can't find the program fdisk (getting a command not found error when i type it at the root console). help!
 
Old 02-06-2004, 12:06 AM   #2
sudoer
LQ Newbie
 
Registered: Jan 2004
Location: GR, MI
Distribution: gentoo, slackware, mandrake, redhat
Posts: 5

Rep: Reputation: 0
try typing in:

which fdisk

it's usually located in the /sbin dir. Some commands are even "hidden" from root, they are still there and you can still use them, but they don't want someone to mess up their computer with it. if that doesn't work, try using locate

locate fdisk
 
Old 02-06-2004, 12:29 AM   #3
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 32
And you have to be loggen in as root to run the fdisk command :-)
 
Old 02-06-2004, 01:41 AM   #4
nigham
Member
 
Registered: Oct 2003
Location: Singapore
Distribution: Fedora Core 2
Posts: 32

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by UltimaGuy
And you have to be loggen in as root to run the fdisk command :-)
yeah thats right. i could run fdisk when logged in as root but not as super user. thanks guys
 
Old 02-06-2004, 01:57 AM   #5
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 32
Quote:
yeah thats right. i could run fdisk when logged in as root but not as super user. thanks guys
What is that super user?

If that is 'su' --> it is substitute user ...

When you type just 'su' it goes to the default user --> root here. You can also give 'su <username>'.

And, to enable fdisk et al. when using su, just use 'su -'(hyphen) and you can access root commands!
 
  


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
sure, fdisk -l to find devices ... stabu Slackware 7 10-02-2005 01:10 AM
cannot find usb-storage with fdisk -l Gerard_2009 Linux - Hardware 2 06-14-2005 02:12 PM
fstab can't find a file system fdisk can rharvey@cox Linux - Hardware 1 06-02-2004 08:36 PM
Can't find fdisk Add1Sun Linux - Newbie 5 04-22-2004 01:38 PM
Slackware 9.1 fdisk doesnt find hard drive lazyday Linux - Laptop and Netbook 5 02-04-2004 08:57 PM

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

All times are GMT -5. The time now is 02:32 AM.

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