How to Properly Shutdown Linux CentOS/RHEL Server

Share this Article :

What is the correct way to turn off a CentOS/RHEL Linux server?

I would recommend to shut the system down using “shutdown -h now” command. This will shut down the system to a halt and mostly used for a remote shutdown. Shutdown with the parameter -h is to halt, and shutdown with the parameter -r is to reboot.

    [[email protected] ~]# shutdown -h now
    

This command will shutdown then halt the computer.

    [[email protected] ~]# shutdown -t3 -h now
    

The option “-t3” tells the shutdown command to wait 3 seconds before it starts killing processes.

Also Read :   How to Display IP Address on RHEL/CentOS

Note for VMware: If vmware-tools installed in Linux VM, shutdown -h now command should be able to use and it will power-off the VM by itself. This works and tested on CentOS 4 and CentOS 5 VMs, on VMware Server 1.0.x and -VMware Server 2.0.x, Workstation 6.x, and ESX/ESXi.


Leave a Reply