shutdown command in Linux with Examples

shutdown command means Halt, power-off or reboots the machine. In this tutorial, How to shutdown command in Linux with Examples.

Syntax

shutdown [OPTION]… TIME [MESSAGE]

In man page the describe it

  • shutdown  – bring the system down.
  • man shutdown – More details information about the shutdown command.

The shutdown command in Linux with Examples

$ sudo shutdown -h now

#Schedule the system to shut down at 8 A.M.
$ sudo shutdown 8:00

#Schedule the system to shut down in fifteen minutes.
$ sudo shutdown +15 "Upgrading hardware, downtime should be minimal"

#Bring down the system immediately, and automatically reboot it.
$ sudo shutdown -r now

# Bring down the system immediately, and automatically power off the system.
$ sudo shutdown -P now

Related commands

halt – Stop the computer.
poweroff – Stop the computer.
reboot – Stop the computer.
wall – Send a message to all logged-in users.

Conclusion

The shutdown command is the simple the command in Linux. It is the most popular in use terminal Linux bring the system down.

About HuuPV

My name is Huu. I love technology and especially Devops Skill such as Docker, vagrant, git so forth. I likes open-sources. so I created DevopsRoles.com site to share the knowledge that I have learned. My Job: IT system administrator. Hobbies: summoners war game, gossip.
View all posts by HuuPV →

Leave a Reply

Your email address will not be published. Required fields are marked *

Comment moderation is enabled. Your comment may take some time to appear.

This site uses Akismet to reduce spam. Learn how your comment data is processed.