{"id":3261,"date":"2012-06-01T14:51:43","date_gmt":"2012-06-01T06:51:43","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=3261"},"modified":"2023-04-28T09:49:16","modified_gmt":"2023-04-28T09:49:16","slug":"how-to-properly-shutdown-and-reboot-linux-centos-5centos-6rhel-5rhel-6","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-properly-shutdown-and-reboot-linux-centos-5centos-6rhel-5rhel-6\/","title":{"rendered":"How to Properly Shutdown and Reboot Linux CentOS 5\/CentOS 6\/RHEL 5\/RHEL 6"},"content":{"rendered":"<p>This post will show you the proper command to shutdown and reboot the linux server. To shut down Red Hat Enterprise Linux(RHEL) and CentOS, the root user may issue the \/sbin\/shutdown command. All the command has been tested on CentOS 6.2 but may workings on other CentOS and RHEL version. The shutdown man page has a complete list of options, but the two most common uses are: <\/p>\n<h3>Example 1. How to Properly Shutdown CentOS 5\/CentOS 6\/RHEL 5\/RHEL 6 :<\/h3>\n<pre>\n[root@centos62 ~]# \/sbin\/shutdown -h now\n<\/pre>\n<h3>Example 2. How to Properly Reboot CentOS 5\/CentOS 6\/RHEL 5\/RHEL 6 :<\/h3>\n<pre>\n[root@centos62 ~]# \/sbin\/shutdown -r now\n<\/pre>\n<p>After shutting everything down, the -h option halts the machine, and the -r option reboots.<\/p>\n<p>These are another useful shutdown command :<\/p>\n<h3>Example 3. To shutdown in next 10 minutes:<\/h3>\n<pre>\n[root@centos62 ~]# \/sbin\/shutdown -h +10\n<\/pre>\n<h3>Example 4. To reboot in next 10 minutes:<\/h3>\n<p>[root@centos62 ~]# \/sbin\/shutdown -r +10<\/p>\n<h3>Example 5. To shutdown the server in next 3 seconds :<\/h3>\n<pre>\n[root@centos62 ~]# \/sbin\/shutdown -t3 -r now\n<\/pre>\n<p>The option &#8220;-t3&#8221; tells the shutdown command to wait 3 seconds before it starts killing processes. <\/p>\n<h3>Example 6. Resheduled to shutdown the server at 12:15 :<\/h3>\n<pre>\nlogin as: root\nroot@192.168.1.44's password:\nLast login: Fri Jun  1 12:05:27 2012 from 192.168.1.52\n[root@centos62 ~]# date\nFri Jun  1 12:12:00 MYT 2012\n[root@centos62 ~]# \/sbin\/shutdown -r 12:15\n\nBroadcast message from root@centos62.ehowstuff.local\n        (\/dev\/pts\/0) at 12:12 ...\n\nThe system is going down for reboot in 3 minutes!\n\nBroadcast message from root@centos62.ehowstuff.local\n        (\/dev\/pts\/0) at 12:13 ...\n\nThe system is going down for reboot in 2 minutes!\n\nBroadcast message from root@centos62.ehowstuff.local\n        (\/dev\/pts\/0) at 12:14 ...\n\nThe system is going down for reboot in 1 minute!\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This post will show you the proper command to shutdown and reboot the linux server. To shut down Red Hat Enterprise Linux(RHEL) and CentOS, the root user may issue the&#8230;<\/p>\n","protected":false},"author":6,"featured_media":1499,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2055,2058],"tags":[1244,1536,1546,1693,1781],"class_list":["post-3261","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-rhel","tag-centos","tag-linux","tag-linux-utilities","tag-reboot-command","tag-shutdown-command"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/3261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=3261"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/3261\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/1499"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=3261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=3261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=3261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}