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
HowTo: Send Email from an SMTP Server using the Command Line
Viewed 418 times since Mon, Feb 18, 2019
RHEL: GPT/MBR partition tables (using disks larger than 2 TiB)
Viewed 957 times since Sun, May 27, 2018
Improve security with polyinstantiation
Viewed 100 times since Fri, May 15, 2020
Using stunnel and TinyProxy to obfuscate HTTP traffic
Viewed 1033 times since Fri, Sep 28, 2018
How to run command or code in parallel in bash shell under Linux or Unix
Viewed 528 times since Tue, Aug 6, 2019
CentOS / RHEL : Configure yum automatic updates with yum-cron service
Viewed 2084 times since Fri, Oct 26, 2018
Script to Offline and Remove A Disk In Linux
Viewed 412 times since Mon, Jan 28, 2019
RHEL: Bonding network interfaces
Viewed 961 times since Sat, Jun 2, 2018
Telnet – Send GET/HEAD HTTP Request
Viewed 420 times since Mon, Feb 18, 2019
Przekazywanie portów TCP rinetd
Viewed 1953 times since Thu, May 24, 2018