-   Linux - Newbie (
-   -   why some of my commands not found (

sleepyguy 01-10-2005 09:41 PM

why some of my commands not found
i m new to linux. i have downloaded redhat 7.2 from redhat ftp, and installed successfully on my laptop from my cdrom. i read the "getting started" online guide provided by redhat to learn how to use linux redhat, but i when i type commands such as "mkbootdisk" and "shutdown" the shell gives me an error message: command not found. could any one tell me whats wrong? thx.

Demonbane 01-10-2005 09:49 PM

The problem is /sbin is not in the PATH when you do "su"

use "su -" instead of just "su"
or type "source /etc/profile" after you su
or execute them with full path, eg /sbin/shutdown

sleepyguy 01-10-2005 09:53 PM

finally it works, thanx a lot.

Brian1 01-10-2005 09:59 PM

I forget but how would you go about adding /sbin to your path permently?

Demonbane 01-10-2005 10:07 PM

put in your ~/.bashrc

export PATH=$PATH:/sbin

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