1SHUTDOWN(8)                        shutdown                        SHUTDOWN(8)
2
3
4

NAME

6       shutdown - Halt, power off or reboot the machine
7

SYNOPSIS

9       shutdown [OPTIONS...] [TIME] [WALL...]
10

DESCRIPTION

12       shutdown may be used to halt, power off, or reboot the machine.
13
14       The first argument may be a time string (which is usually "now").
15       Optionally, this may be followed by a wall message to be sent to all
16       logged-in users before going down.
17
18       The time string may either be in the format "hh:mm" for hour/minutes
19       specifying the time to execute the shutdown at, specified in 24h clock
20       format. Alternatively it may be in the syntax "+m" referring to the
21       specified number of minutes m from now.  "now" is an alias for "+0",
22       i.e. for triggering an immediate shutdown. If no time argument is
23       specified, "+1" is implied.
24
25       Note that to specify a wall message you must specify a time argument,
26       too.
27
28       If the time argument is used, 5 minutes before the system goes down the
29       /run/nologin file is created to ensure that further logins shall not be
30       allowed.
31

OPTIONS

33       The following options are understood:
34
35       --help
36           Print a short help text and exit.
37
38       -H, --halt
39           Halt the machine.
40
41       -P, --poweroff
42           Power the machine off (the default).
43
44       -r, --reboot
45           Reboot the machine.
46
47       -h
48           The same as --poweroff, but does not override the action to take if
49           it is "halt". E.g.  shutdown --reboot -h means "poweroff", but
50           shutdown --halt -h means "halt".
51
52       -k
53           Do not halt, power off, or reboot, but just write the wall message.
54
55       --no-wall
56           Do not send wall message before halt, power off, or reboot.
57
58       -c
59           Cancel a pending shutdown. This may be used to cancel the effect of
60           an invocation of shutdown with a time argument that is not "+0" or
61           "now".
62
63       --show
64           Show a pending shutdown action and time if there is any.
65

EXIT STATUS

67       On success, 0 is returned, a non-zero failure code otherwise.
68

COMPATIBILITY

70       The
71        shutdown command in previous init systems (including sysvinit)
72       defaulted to single-user mode instead of powering off the machine. To
73       change into single-user mode, use systemctl rescue instead.
74

SEE ALSO

76       systemd(1), systemctl(1), halt(8), wall(1)
77
78
79
80systemd 251                                                        SHUTDOWN(8)
Impressum