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
rabbitmq Troubleshooting TLS-enabled Connections
Viewed 666 times since Sun, Dec 6, 2020
RHEL: What is "SysRq key" and how to use it
Viewed 2837 times since Sat, Jun 2, 2018
linux manual tools
Viewed 1157 times since Fri, Sep 28, 2018
Fix rpmdb: Thread died in Berkeley DB library
Viewed 19113 times since Fri, Feb 14, 2020
20 Linux YUM (Yellowdog Updater, Modified) Commands for Package Management YUM
Viewed 9812 times since Thu, Oct 25, 2018
SSH Essentials: Working with SSH Servers, Clients, and Keys
Viewed 2327 times since Wed, Jun 27, 2018
How setting the TZ environment variable avoids thousands of system calls
Viewed 8273 times since Mon, May 21, 2018
18 Quick ‘lsof’ command examples for Linux Geeks
Viewed 8493 times since Sun, Jun 30, 2019
RHEL: iSCSI target/initiator configuration on RHEL6
Viewed 5893 times since Sat, Jun 2, 2018
Tropienie pożeracza dysku
Viewed 1238 times since Thu, May 24, 2018