LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-10-2005, 09:41 PM   #1
sleepyguy
LQ Newbie
 
Registered: Jan 2005
Posts: 2

Rep: Reputation: 0
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.
 
Old 01-10-2005, 09:49 PM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
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
 
Old 01-10-2005, 09:53 PM   #3
sleepyguy
LQ Newbie
 
Registered: Jan 2005
Posts: 2

Original Poster
Rep: Reputation: 0
finally it works, thanx a lot.
 
Old 01-10-2005, 09:59 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
I forget but how would you go about adding /sbin to your path permently?
 
Old 01-10-2005, 10:07 PM   #5
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
put in your ~/.bashrc

export PATH=$PATH:/sbin
 
  


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 not found in fedora core4 tjgadu Linux - Newbie 1 10-26-2005 07:32 AM
Basic Commands Not Found Error varunbihani Linux - Newbie 5 01-21-2005 05:57 AM
No commands are found?? Help AmdMhz Linux - Newbie 2 06-16-2004 12:25 AM
Updatedb and Locate - commands not found rodviking Linux - Software 3 11-17-2003 01:41 AM
SSH login commands not found ??? avierstr Mandriva 0 08-26-2003 08:14 AM

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

All times are GMT -5. The time now is 06:38 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