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 Chage Command to Set Password Aging for User
Viewed 3359 times since Tue, Sep 11, 2018
LVM: Extend an existing Logical Volume / Filesystem
Viewed 3347 times since Sat, Jun 2, 2018
LVM: Managing snapshots
Viewed 8651 times since Sat, Jun 2, 2018
How to stop and disable auditd on RHEL 7
Viewed 42327 times since Tue, Aug 6, 2019
Linux File Systems (mkfs, mount, fstab) ext4
Viewed 3996 times since Sat, Jun 2, 2018
How to recover error - Audit error: dispatch err (pipe full) event lost
Viewed 27748 times since Tue, Aug 6, 2019
7 Tips – Tuning Command Line History in Bash
Viewed 6896 times since Fri, Jul 5, 2019
watchdog How to restart a process out of crontab on a Linux/Unix
Viewed 7052 times since Tue, Jul 31, 2018
List usernames instead of uids with the ps command for long usernames
Viewed 3179 times since Wed, Jul 25, 2018
Secure NTP with NTS
Viewed 9544 times since Sun, Dec 6, 2020