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
Improve security with polyinstantiation
Viewed 282 times since Fri, May 15, 2020
RHEL: Extending a multipath LUN
Viewed 1310 times since Sun, May 27, 2018
awk printf
Viewed 346 times since Wed, Aug 19, 2020
LVM: Reduce an existing Volume Group by removing one of its disks
Viewed 770 times since Sat, Jun 2, 2018
Linux Chage Command to Set Password Aging for User
Viewed 533 times since Tue, Sep 11, 2018
RHEL: iSCSI target/initiator configuration on RHEL7
Viewed 1547 times since Sat, Jun 2, 2018
HowTo: Send Email from an SMTP Server using the Command Line
Viewed 529 times since Mon, Feb 18, 2019
debian Install a newer kernel in Debian 9 (stretch) stable
Viewed 535 times since Sun, Sep 23, 2018
What is OS Watcher Utility and How to use it for Database Troubleshooting ?
Viewed 3733 times since Thu, Jun 21, 2018
How to convert RAW image to VDI and otherwise
Viewed 1518 times since Wed, Oct 3, 2018