LinuxQuestions.org
Register a domain and help support LQ
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 10-12-2003, 12:28 PM   #1
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Rep: Reputation: 30
Where are my commands ......?


I am using redhat 9 .

I am trying to use FDISK to make a new partition on a new added harddisk. Should be peace of cake according to Read Hat Linux Bible 9.

If I try to start fdisk I get this dialog

[ruud@localhost ruud]$ su
Password:
[root@localhost ruud]# fdisk -1
bash: fdisk: command not found
[root@localhost ruud]#

If have noticed this with other commands to. They seam not to be there. Do I have to activate something ?

What do I wrong?

CB
 
Old 10-12-2003, 12:34 PM   #2
wuck
Member
 
Registered: Sep 2003
Location: barneveld.nl
Distribution: Slackware
Posts: 170

Rep: Reputation: 30
[offtopic]
Hoe kan je een ademtocht talmen?
[/offtopic]

If you know what drive you want to (re)partition, just say:

# fdisk drive

Where drive is the drive in question.
 
Old 10-12-2003, 12:34 PM   #3
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
fdisk is located in /sbin. As a normal user, it's not in your path. When you "su", you gain root priviledge's, but that's it. To run it as you are, you would have to tell the system where fdisk is with the full path... "/sbin/fdisk".

Or, you can "su -". This is pretty much the same as logging in as root, which run root's start-up commands, which sets the path list the system looks through when you enter a command. After "su -", you can either run "/sbin/fdisk", or just "fdisk".
 
Old 10-12-2003, 01:18 PM   #4
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by ranger_nemo
fdisk is located in /sbin. As a normal user, it's not in your path. When you "su", you gain root priviledge's, but that's it. To run it as you are, you would have to tell the system where fdisk is with the full path... "/sbin/fdisk".

Or, you can "su -". This is pretty much the same as logging in as root, which run root's start-up commands, which sets the path list the system looks through when you enter a command. After "su -", you can either run "/sbin/fdisk", or just "fdisk".
Thanks. This helps me a lot.

CB
 
  


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
Commands Instantly Linux - Newbie 3 01-12-2005 02:18 PM
commands tslinux Linux - Newbie 1 12-15-2004 07:54 AM
commands merchtemeagle Linux - Newbie 6 10-12-2004 11:38 AM
Help with commands! snowbaby Linux - Software 1 12-02-2001 03:15 PM
Commands Susan Linux - General 5 10-11-2001 03:40 AM


All times are GMT -5. The time now is 04:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration