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
Creating SWAP partition using FDISK & FALLOCATE commands
Viewed 8386 times since Thu, Jan 16, 2020
Linux / UNIX: Run Command a Number of Times In a Row
Viewed 16849 times since Tue, Aug 6, 2019
CONFIGURE OCFS2
Viewed 9715 times since Sat, Jun 2, 2018
Manage SSH Key File With Passphrase
Viewed 3280 times since Tue, Mar 5, 2019
How to find the largest files and directories in Linux?
Viewed 4291 times since Sun, May 20, 2018
Fix rpmdb: Thread died in Berkeley DB library
Viewed 22361 times since Fri, Feb 14, 2020
Top 20 OpenSSH Server Best Security Practices ssh linux aix
Viewed 7466 times since Fri, May 15, 2020
Linux How to reset a root password on Fedora
Viewed 3642 times since Sun, Dec 6, 2020
tcpdump usage examples
Viewed 3380 times since Fri, Jul 27, 2018
How To Ping Specific Port Number
Viewed 6795 times since Mon, Jun 1, 2020