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
Secure Remote Logging to Central Log Server Using RSYSLOG on CentOS 6 / CentOS 7 and stunnel
Viewed 3290 times since Sun, Dec 6, 2020
How To Ping Specific Port Number
Viewed 3296 times since Mon, Jun 1, 2020
RHEL7: Create and configure LUKS-encrypted partitions and logical volumes to prompt for password and mount a decrypted file system at boot.
Viewed 10851 times since Mon, Aug 6, 2018
Tropienie pożeracza dysku
Viewed 1980 times since Thu, May 24, 2018
linux unix aix banner /etc/issue
Viewed 1710 times since Fri, Aug 3, 2018
RHEL: Remove existing SAN LUNs
Viewed 13711 times since Sat, Jun 2, 2018
Secure NTP with NTS
Viewed 8020 times since Sun, Dec 6, 2020
OEL 7 – How to disable IPv6 on Oracle Linux 7
Viewed 19389 times since Fri, Aug 3, 2018
10 Linux nslookup Command Examples for DNS Lookup
Viewed 9894 times since Sun, Sep 30, 2018
Super Grub2 Disk
Viewed 3055 times since Wed, May 22, 2019