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
How to clear swap memory in Linux
Viewed 303 times since Mon, Nov 23, 2020
RHEL: Rename a network interface on RHEL 7
Viewed 2627 times since Sat, Jun 2, 2018
How to deal with dmesg timestamps
Viewed 917 times since Wed, Oct 3, 2018
SSH ProxyCommand example: Going through one host to reach another server
Viewed 3774 times since Tue, Aug 6, 2019
logrotate Understanding logrotate utility
Viewed 600 times since Sun, Jan 12, 2020
Linux nslookup Command Examples for DNS Lookup
Viewed 1077 times since Sat, Sep 29, 2018
tcpdump usage examples
Viewed 773 times since Fri, Jul 27, 2018
RHEL: Scan and configure new SAN (fibre channel) LUNs
Viewed 4924 times since Sun, May 27, 2018
OpenSSL – sprawdzanie czy klucz pasuje do certyfikatu
Viewed 1248 times since Thu, May 24, 2018
RHEL: Create a local RPM repository
Viewed 1639 times since Sun, May 27, 2018