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

Posted on in Categories , , , , last updated November 21, 2012


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 and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

Share this on (or read 0 comments/add one below):