

If the time argument is used, 5 minutes before the system goes down the /run/nologin file is created to ensure that further logins shall not be allowed. Note that to specify a wall message you must specify a time argument, too. If no time argument is specified, “+1” is implied. Alternatively it may be in the syntax “+m” referring to the specified number of minutes m from now. The time string may either be in the format “hh:mm” for hour/minutes specifying the time to execute the shutdown at, specified in 24h clock format.

Optionally, this may be followed by a wall message to be sent to all logged-in users before going down. The first argument may be a time string (which is usually “now”).


Turn off your Linux operating system: shutdown now -h Reboot your computer immediately: shutdown now -r What is the best way to use the shutdown command on Linux? Simple and easy, just follow this examples for both, local computers or enterprise grade servers: no-wall Don't send wall message before halt/power-off/rebootĪs you see in the previous “help” command, the shutdown linux command How to shutdown linux from command line? k Don't halt/power-off/reboot, just send warnings h Equivalent to -poweroff, overridden by -halt Linux includes the famous “shutdown” command, which is an utility to reboot, halt or turn off our running operating system. How can I shutdown my Linux box from the terminal? What is the linux shutdown command to turn off or reboot my computer? Here we will answer all this questions in a simple and easy way.
