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
Learn how to align an SSD on Linux
Viewed 12679 times since Fri, May 15, 2020
Learn Linux System Auditing with Auditd Tool on CentOS/RHEL
Viewed 4501 times since Fri, Apr 5, 2019
Linux – How to check the exit status of several piped commands
Viewed 3082 times since Wed, Jul 25, 2018
RHEL: Scan and configure new SAN (fibre channel) LUNs
Viewed 8277 times since Sun, May 27, 2018
HowTo: Send Email from an SMTP Server using the Command Line
Viewed 2302 times since Mon, Feb 18, 2019
RHEL: Rename a network interface on RHEL 7
Viewed 10790 times since Sat, Jun 2, 2018
Index » Community Contributions » System encryption using LUKS and GPG encrypted keys for arch linux
Viewed 3359 times since Fri, Jul 13, 2018
15 Linux Yum Command Examples – Install, Uninstall, Update Packages
Viewed 3557 times since Thu, Oct 25, 2018
RHEL: Building a custom kernel on RHEL 6
Viewed 4281 times since Sat, Jun 2, 2018
Linux Screen
Viewed 2166 times since Sat, Jun 2, 2018