SSH shutdown command

If you wish to power off your Linux server or Linux VPS you can use the shutdown command in Linux for this.

Why use shutdown?

The command stops the system in a secure way.  All specific software on your machine that is designed to take measures when shutting down will be notified and given enough time.

You also have options on whether to shut the system immediately or after a time period which allows you to schedule future events or notify your users about an upcoming reboot/shutdown.

Shutdown your server

It’s the most basic and simple usage

linux shutdown image

shutdown

Shutdown and halt afterward

cPanel Hosting from WebhostFace
shutdown -h

Shutdown and reboot your server

linux shutdown reboot image

shutdown -r

Shutdown in a specific time

linux schedule shutdown

shutdown now # immediately shuts down the server
shutdown 15:00 # shuts down at 3 PM
shutdown +30 # shuts down in 30 minutes

Cancel scheduled shutdown

If you have used any of the above options to schedule a shutdown and you wish to cancel it you can do that

linux shutdown cancel

shutdown -c

Fake shutdown

Linux fake shutdown

When you’re developing your software to “understand” about an upcoming shutdown on the machine you can actually send out a fake signal that the server is being shut down.

shutdown -k

You can play around and use our Linux Dedicated Servers to master the Linux Shutdown and Reboot Commands. Get a Shared Hosting Plan with a great discount price – 40% OFF the regular price! Try the Linux shutdown command on a Linux Dedicated server now!