Linux Shutdown Command

37987

In this tutorial, we will show you how to use the shutdown utility through practical examples and detailed explanations of the most common shutdown options.

The shutdown command brings the system down in a secure way. When the shutdown is initiated, all logged-in users and processes are notified that the system is going down, and no further logins are allowed. You can shut down your system immediately or at the specified time.

Shutdown Command Syntax

Before going into how to use the shutdown command, let’s start by reviewing the basic syntax.

The shutdown utility expressions take the following form:

shutdown [OPTIONS] [TIME] [MESSAGE]
  • optionsShutdown options such as halt, power-off (the default option) or reboot the system.
  • time – The time argument specifies when to perform the shutdown process.
  • message – The message argument specifies a message which will be broadcast to all users.

Read more at Linuxize.com