Linux Command To Shutdown HP/IBM/Sun/Dell Server System

last updated in Categories , , , ,


How do I shutdown a Linux powered server using command line option?

You need to use the shutdown command to shuts down the server system powered by Linux operating systems. The syntax is:


shutdown [options]

The shutdown command power down the system in a secure way. All logged-in users are notified that the system is going down, and login is blocked. To shutdown server immediately type the following command as root user:

shutdown -h now

OR

shutdown -h 0

OR

sudo shutdown -h now

You can also use the following commands as root user to shutdown and stop the system:

poweroff

OR

halt

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.