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 -h means "poweroff", but shutdown --halt -h means "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 of shutdown with 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