CentOS/RHEL 6: Shutdown Command

I am a new RHEL (Red Hat Enterprise Linux) version 6 server admin user. What is the command to shut down a RHEL based system over the ssh based session? How do I shutdown a CentOS Linux based system?

Tutorial details
Difficulty level Easy
Root privileges Yes
Requirements None
Est. reading time 2m
You can use any one of the following command on CentOS/Red Hat/RHEL/Fedora/Scientific Linux based system to shutdown the system:
  1. shutdown command – Bring the system/server down in a safe way.
  2. halt or poweroff command – These programs allow a system administrator to halt or poweroff the system.
  3. telinit command – Change system runlevel to zero (0) i.e. shutdown the system.

RHEL/CentOS/Red Hat server poweroff command syntax

You can use any one of the following command and the basic syntax is:

shutdown -h now


shutdown -h 0






telinit 0

Exact procedure and command to shut down a Red Hat (RHEL)/CentOS Linux system

Open the Terminal or login to the remote server over the ssh. Type the following command as root user to shutdown server immediately without any warning to the users:
# shutdown -h now
However, on busy system, you may want send a message to everybody’s terminal using the wall command as follows:
# wall "Server is shutting down in 10 minutes. Please save all work."
# shutdown -h +10

OR use the shutdown command as follows to send a message:
# shutdown -h +5 "System RAM upgraded scheduled at 6:30pm IST. Save all your work as system going to shutdown in 5 minutes."
Sample outputs:

Broadcast message from root@server1.cyberciti.biz
	(/dev/pts/0) at 4:38 ...
The system is going down for halt in 5 minutes!
System RAM upgraded scheduled at 6:30pm IST. Save all your work as system going to shutdown in 5 minutes.
See also:

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 1 comment so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
1 comment… add one
  • aref ghobadi Aug 17, 2015 @ 16:26

    thanks a lot, very nice article
    init 0 command shutdown the system
    init 6 command reboot the system

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum