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 encrypt a partition using LUKS?
Viewed 2005 times since Fri, Jul 13, 2018
ZFS: Verify/change properties of a zfs filesystem
Viewed 2769 times since Sun, Jun 3, 2018
RHEL: Displaying/setting kernel parameters - ’sysctl’
Viewed 3221 times since Sat, Jun 2, 2018
O’Reilly’s CD bookshelf
Viewed 13239 times since Wed, Jun 27, 2018
HowTo: Retrieve Email from a POP3 Server using the Command Line
Viewed 11818 times since Mon, Feb 18, 2019
UUIDs and Linux: Everything you ever need to know [Update]
Viewed 5102 times since Tue, Jul 17, 2018
8 Vim Tips And Tricks That Will Make You A Pro User
Viewed 3107 times since Fri, Apr 19, 2019
high swap space utilization in LINUX
Viewed 6719 times since Fri, Jul 13, 2018
ZPOOL: Detach a submirror from a mirrored zpool
Viewed 2897 times since Sun, Jun 3, 2018
LVM: Remove a Filesystem / Logical Volume
Viewed 2755 times since Sat, Jun 2, 2018