shutdown command
Hi all, Im new with Linux and currently using Fedora Core 4.
I read in a book about "shutdown" command and tried it. But it says "command not found" , what does that mean ? I tried putting " shutdown -h now " Also is there anyway to shutdown the computer right away ? So far i have to log out first and then from the login page i press "shutdown" Thanks |
DR.V,
Are you trying to run the shutdown command logged in as root? Cheers, Kristijan |
since the path is not set.This says command not found
Try using /sbin/shutdown ---------------------------- To set the path use export PATH=/sbin ----------------------------- now you can use shutdown to shutdown ur system |
Maybe. Depends on how the distro sets up shutdown processes. If they allow regular users to shutdown from the command line, usually this is considered a security risk (depending on how you look at it of course).
You may need to become root to do this from the command line, or use sudo to launch it with full PATH: sudo /sbin/shutdown -h now But this will also depend on how sudo is setup. Cool |
Quote:
What I tried is putting "shutdown" command from the konsole. Thanks |
Quote:
For this command to work, do I have to first set the path ? Or should it work at first place ? Maybe there something I did wrong is the past days that caused this error ?? Many thanks |
Quote:
Quote:
|
Quote:
From the konsole window, type the following; Code:
su - This should take you to a root prompt (#), from there you should be able to shutdown -h now Regards, Kristijan |
Thanks Kristijan, it works. Can you please explain why I need to enter "su -" first ?
Is this command should be entered using the "root" ? And to use the "root" we firstly have to enter the password ? Many thanks |
to shutdown immediately u have 3 commands
shutdown, poweroff, halt all 3 do the same halt however, in some computers, does not turn off the comp also u dont have to be root to run poweroff and halt |
Thanks for all the replies guys. It helps a lot.
|
All times are GMT -5. The time now is 07:15 AM. |