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.

shutdown command in Linux with Examples

Syntax

shutdown [OPTION]… TIME [MESSAGE]

On the man page, 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 a simple command in Linux. It is the most popular in use terminal Linux to bring the system down. Thank you for reading the DevopsRoles page!

About HuuPV

My name is Huu. I love technology, especially Devops Skill such as Docker, vagrant, git, and so forth. I like open-sources, so I created DevopsRoles.com to share the knowledge I have acquired. 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 *

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