SHUTDOWN(8)
โจ shutdown(8) โ the halt/poweroff/reboot queen ๐
ok bestie, welcome to shutdown โ the manual page for the command that literally puts your machine to bed (or wakes it up, we love range ๐). This is shutdown from the shutdown section of the manual, and she is iconic.
๐ธ NAME ๐ธ
shutdown โ halt, power off or reboot the machine. that's it, that's the job ๐
โจ SYNOPSIS โจ
shutdown [OPTIONS...] [TIME] [WALL...]
๐ DESCRIPTION ๐
So shutdown may be used to halt, power off, or reboot the machine. simple queen behaviour, no cap ๐
The first argument may be a time string (which is usually "now", because we are all impatient girlies). Optionally, this may be followed by a wall message to be sent to all logged-in users before going down โ like a little goodbye text to everyone on the system ๐ซถ
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 โฐ. Alternatively it may be in the syntax "+m" referring to the specified number of minutes m from now. "now" is an alias for "+0", i.e. for triggering an immediate shutdown. If no time argument is specified, "+1" is implied.
ok so this part is lowkey important: the time string specifies the earliest point in time the shutdown may take place โ it is a lower bound only ๐ซง the shutdown is executed as soon as possible, but not before the specified time. Specifying a time that already elapsed (for example an "hh:mm" time earlier today) is not an error and results in an immediate shutdown. See the discussion of --when= in systemctl(1) for details ๐
โ ๏ธ note that to specify a wall message you must specify a time argument, too. no time, no wall, them's the rules bestie ๐ญ
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 ๐ซ โ it's giving "we're closed, go home".
๐ฆ OPTIONS ๐ฆ
The following options are understood:
--helpโ Print a short help text and exit. tiny little helper, we stan ๐-H,--haltโ Halt the machine.-P,--poweroffโ Power the machine off (the default โ she's the main character here ๐).-r,--rebootโ Reboot the machine ๐ฅ-hโ The same as--poweroff, but does not override the action to take if it is"halt". E.g.shutdown --reboot -hmeans"poweroff", butshutdown --halt -hmeans"halt". (yes she's the chaotic sibling of--poweroff, iykyk ๐)-kโ Do not halt, power off, or reboot, but just write the wall message. fake shutdown, real vibes โจ--no-wallโ Do not send wall message before halt, power off, or reboot. silent exit, no goodbye ๐-cโ Cancel a pending shutdown. This may be used to cancel the effect of an invocation ofshutdownwith a time argument that is not"+0"or"now". (the "jk bestie, never mind" flag ๐)--showโ Show a pending shutdown action and time if there is any.
๐ Added in version 250. new-ish but already slaying.
โญ EXIT STATUS โญ
On success, 0 is returned, a non-zero failure code otherwise. clean and simple, we love a girl who communicates ๐
๐ง COMPATIBILITY ๐ง
The shutdown command in previous init systems (including sysvinit) defaulted to single-user mode instead of powering off the machine. To change into single-user mode, use systemctl rescue instead. okay so that's the old lore, don't come for her ๐ซถ
๐ SEE ALSO ๐
systemd(1), systemctl(1), halt(8), wall(1) โ the whole friend group, go say hi ๐
and that's the page babes ๐ธ this whole thing is from systemd 259.10 and the page is dated for SHUTDOWN(8) โ one last little sign-off from the manpage herself: systemd 259.10 / SHUTDOWN(8), periodt ๐
โจ
๐ฆ where this page comes from
- fedora 44: systemd 259.10-1.fc44 ยท LGPL-2.1-or-later AND MIT AND GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms