LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   why some of my commands not found (http://www.linuxquestions.org/questions/linux-newbie-8/why-some-of-my-commands-not-found-276325/)

sleepyguy 01-10-2005 08: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 08: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 08:53 PM

finally it works, thanx a lot.

Brian1 01-10-2005 08:59 PM

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

Demonbane 01-10-2005 09:07 PM

put in your ~/.bashrc

export PATH=$PATH:/sbin


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