Computing.Net > Forums > Linux > command not found using shutdown

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

command not found using shutdown

Reply to Message Icon

Name: max
Date: September 12, 2002 at 15:47:39 Pacific
OS: redhat 7.3
CPU/Ram: na
Comment:

Pretty new to linux. The problem is that when I try to shut the computer down using "shutdown -h now" I get "command not found" error. Strange thing is it used to work just fine.



Sponsored Link
Ads by Google

Response Number 1
Name: Jonathan
Date: September 12, 2002 at 15:57:18 Pacific
Reply:

It's a superuser command - usually only root is allowed to use it.

Jonathan


0

Response Number 2
Name: Lawrence
Date: September 12, 2002 at 19:22:38 Pacific
Reply:

The command shutdown is in /sbin and usually
only root has access to that directory...

Lawrence


0

Response Number 3
Name: max
Date: September 12, 2002 at 22:01:09 Pacific
Reply:

The same thing happens if I try to run it as root, command not found. It's right there in sbin, can't figure it out. I've been shutting the thing down with poweroff command.


0

Response Number 4
Name: jon
Date: September 13, 2002 at 03:00:03 Pacific
Reply:

shutdown (if I remember right - not at a linux box) is just a symlink to /sbin/halt (as is poweroff) you might have to create the symlink

J


0

Response Number 5
Name: Lawrence
Date: September 13, 2002 at 05:58:21 Pacific
Reply:

Perhaps /sbin is not on your path!!! Why
don't you add that to your /etc/bashrc or
/etc/profile and try it again... Of course,
you need to log out and back in again so the
new "path" would be in effect or just run

source /etc/bashrc
-or-
source /etc/profile

Lawrence


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: command not found using shutdown

IDE command not found www.computing.net/answers/linux/ide-command-not-found/19715.html

setserial command not found error www.computing.net/answers/linux/setserial-command-not-found-error/21611.html

command not found www.computing.net/answers/linux/command-not-found/5339.html