Click to See Complete Forum and Search --> : The most basic question ever -- shutting down
mstembri3
02-21-2001, 09:24 PM
Hello, I installed Red Hat 7.0 (command line only) last week and have a simple question.
What is the proper method of shutting down? I've tried using:
% shutdown -r now
and it tells me : Bash: shutdown: command not found. I ran this from the root directory, logged in as Superuser (and I tried not being logged in as superuser).
I've read that it is bad to simply reboot or kill the power. If the shutdown command isn't working, how else do I get the job done?
I need to restart as I've reworked my network and would like the machine to redetect the cards.
FoBoT
02-21-2001, 09:29 PM
what happens if you do this
./shutdown -h now
??
if you aren't root then putting the ./ tells bash to look for the command or something like that
my limited experience is that linux hates to be "shut-off" even worse than winders, nothing like a good UPS to keep a 'puter up! :D
bsh152s
02-21-2001, 09:31 PM
Try 'shutdown -h now' to completely shutdown (halt) the machine. If that doesn't work, try Ctrl-Alt-F2 and then Ctrl-Alt-Del. But no, you definitely don't want to hit the reset button.
mstembri3
02-21-2001, 09:31 PM
I just used:
% which shutdown
the system says there is no shutdown {paths]
mstembri3
02-21-2001, 09:33 PM
Cool.
Control-alt-F2 logged me out.
Control-alt-delete rebooted the system.
Thanks for the help.
FyberOptyx
02-21-2001, 09:37 PM
Try shut and then press tab it should fill the rest then -h now. -r reboots instead of shutting down.
Whipping Boy
02-21-2001, 09:40 PM
You're not answering the question. The problem is either:
a) the shutdown command does not exist; or
b) it is not in the search path as defined in the PATH environment variable.
Run "which shutdown" again as root, and put everything it says here.
chimaybleue
02-22-2001, 06:45 AM
in general, you can type reboot to recboot and halt to shutdown ... Quite basic, but it works ! (You have to be root) and ctrl-D is log out too.
StanLin
02-22-2001, 07:01 AM
Try poweroff. Also see the man pages.
Strike
02-22-2001, 12:52 PM
shutdown should be in /sbin, and I'd be surprised as hell to find out if it wasn't in there. So, try:
/sbin/shutdown -h now to power down
/sbin/shutdown -r now to reboot
You probably su'ed to root and it didn't inherit root's PATH. Do su - and it will work