Linux - How to shutdown or reboot

Linux - How to shutdown or reboot

 
To reboot.
[root@myserver]# reboot
or
[root@myserver]# shutdown -r now
or
[root@myserver]# init 6


To shutdown the Operating System.
By default shutdown command will bring the Operating System to runlevel 1
[root@myserver]# shutdown


To shutdown the Operating System and poweroff.
[root@myserver]# shutdown -h now


To cancel shutdown.
[root@myserver]# shutdown -c
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
12 Linux Rsync Options in Linux Explained
Viewed 11784 times since Wed, Oct 31, 2018
10 Linux DIG Command Examples for DNS Lookup
Viewed 10859 times since Sun, Sep 30, 2018
RHEL: Display swap/RAM size
Viewed 3079 times since Sat, Jun 2, 2018
LVM: Remove an existing Volume Group
Viewed 5135 times since Sat, Jun 2, 2018
Linux - How to get IP and MAC address of ethernet adapter in Linux
Viewed 2488 times since Fri, Jun 8, 2018
awk printf
Viewed 14734 times since Wed, Aug 19, 2020
RHEL: Displaying system info (firmware, serial numbers... )
Viewed 11672 times since Sun, May 27, 2018
IPTABLES linux
Viewed 16792 times since Sat, Jun 2, 2018
UUIDs and Linux: Everything you ever need to know [Update]
Viewed 4803 times since Tue, Jul 17, 2018
BIND for the Small LAN
Viewed 3212 times since Sun, May 20, 2018