
To properly shutdown Linux Fedora machine we can use the shutdown command. The command example below show how to shutdown Linux Fedora properly using shutdown command. To execute shutdown command you may need root user privileges, use the su command as example below if you log in as normal user and want to shutdown Linux Fedora machine using shutdown command.
Shutdown command: shutdown -h now

login as: root
root@192.168.1.4's password:
Last login: Fri Nov 14 04:29:08 2008 from 192.168.1.3
[root@fedora ~]# shutdown -h now
Broadcast message from root@fedora.linux.com
(/dev/pts/0) at 20:38 ...
The system is going down for halt NOW!
[root@fedora ~]#
if you log in as normal user you may get message below.... .
login as: fedora
fedora@192.168.1.4's password:
[fedora@fedora ~]$ shutdown -h now
-bash: shutdown: command not found
[fedora@fedora ~]$
Then you should use shutdown command: su -c "/sbin/shutdown -h now" as show on example below.

[fedora@fedora ~]$ su -c "/sbin/shutdown -h now"
Password: <---- key in root user password here and hit Enter key
[fedora@fedora ~]$
Broadcast message from fedora@fedora.linux.com
(/dev/pts/1) at 1:33 ...
The system is going down for halt NOW!


0 comments:
Post a Comment