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
Linux - How to get IP and MAC address of ethernet adapter in Linux
Viewed 2753 times since Fri, Jun 8, 2018
linux aix Killing a process and all of its descendants
Viewed 3837 times since Tue, May 5, 2020
Oracle Linux 7 – How to audit changes to a trusted file such as /etc/passwd or /etc/shadow
Viewed 3003 times since Wed, Jul 25, 2018
Inxi – A Powerful Feature-Rich Commandline System Information Tool for Linux
Viewed 18942 times since Sat, Jun 2, 2018
sed Delete / Remove ^M Carriage Return (Line Feed / CRLF) on Linux or Unix
Viewed 10303 times since Thu, Feb 7, 2019
How to Configure ‘FirewallD’ in RHEL/CentOS 7 and Fedora 21
Viewed 10500 times since Wed, Oct 9, 2019
systemctl Use systemd to Start a Linux Service at Boot
Viewed 5806 times since Mon, Dec 7, 2020
ZPOOL: Remove an existing zpool
Viewed 2340 times since Sun, Jun 3, 2018
3 Ways to Check Linux Kernel Version in Command Line
Viewed 11616 times since Fri, Apr 19, 2019
How to clear swap memory in Linux
Viewed 2057 times since Mon, Nov 23, 2020