LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   some bash commands dosen't work (https://www.linuxquestions.org/questions/linux-newbie-8/some-bash-commands-dosent-work-168123/)

Username[SWE] 04-09-2004 09:47 AM

some bash commands dosen't work
 
I'm using Red hat valhall 7.3 and i found a page with linux bash commands but i cant use some
input: fdisk
output: Bash: fdisk: command not found


i.e Fdisk,unmount,cron and more

nalg0rath 04-09-2004 09:51 AM

You have to be logged in as root-user to use the fdisk -command.
There is not any "unmount" -command, the name uf the caommand us "umount"

Squall 04-09-2004 05:57 PM

Also, please be aware for umount/mount you CANNOT be in the same directory. If you are in /mnt/floppy when you're trying to unmount your floppy, it won't work.

mikshaw 04-09-2004 10:20 PM

I didn't know about that one Squall. Not that I'm ever in that situation, but it's a useful thing to know.

megaspaz 04-10-2004 12:53 AM

bear in mind that there's root access only commands that won't work even if you "su" to change to root as certain paths are not accessible (without the full path to the command) if you don't su and make that the login shell -> use the "su -" command to load /sbin/ and /usr/sbin in the path. using "su -" will let you just use "fdisk" to start up fdisk. the full path to fdisk is /sbin/fdisk in rh 7.3.


All times are GMT -5. The time now is 11:53 PM.