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
Szybkie sprawdzenie zewnętrznego adresu IP i hosta
Viewed 2570 times since Thu, May 24, 2018
SSL HowTo: Decode CSR
Viewed 2308 times since Mon, Feb 18, 2019
Tip: SSD and Linux. Enable TRIM and check if it works
Viewed 5694 times since Fri, May 15, 2020
Linux Audit The Linux security blog about Auditing, Hardening, and Compliance lynis
Viewed 1177 times since Thu, Jan 16, 2020
RHCS6: Basic operations on clustered services
Viewed 1944 times since Sun, Jun 3, 2018
systemd Auto-restart a crashed service in systemd
Viewed 1731 times since Fri, Jan 17, 2020
How to accurately determine when the system was booted
Viewed 1610 times since Wed, Oct 3, 2018
Get UUID of Hard Disks [Update]
Viewed 1392 times since Tue, Jul 17, 2018
Top 4 Reasons for Node Reboot or Node Eviction in Real Application Cluster (RAC) Environment
Viewed 20014 times since Thu, Jun 21, 2018
INSTALACJA MIB SNMP W SYSTEMIE CENTOS/RHEL 6
Viewed 10753 times since Fri, Nov 30, 2018