{
    "mode": "man",
    "parameter": "SHUTDOWN",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/SHUTDOWN/8/json",
    "generated": "2026-06-13T21:38:22Z",
    "synopsis": "shutdown [OPTIONS...] [TIME] [WALL...]",
    "sections": {
        "NAME": {
            "content": "shutdown - Halt, power-off or reboot the machine\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "shutdown [OPTIONS...] [TIME] [WALL...]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "shutdown may be used to halt, power-off or reboot the machine.\n\nThe first argument may be a time string (which is usually \"now\"). Optionally, this may be\nfollowed by a wall message to be sent to all logged-in users before going down.\n\nThe time string may either be in the format \"hh:mm\" for hour/minutes specifying the time to\nexecute the shutdown at, specified in 24h clock format. Alternatively it may be in the syntax\n\"+m\" referring to the specified number of minutes m from now.  \"now\" is an alias for \"+0\",\ni.e. for triggering an immediate shutdown. If no time argument is specified, \"+1\" is implied.\n\nNote that to specify a wall message you must specify a time argument, too.\n\nIf the time argument is used, 5 minutes before the system goes down the /run/nologin file is\ncreated to ensure that further logins shall not be allowed.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "The following options are understood:\n",
            "subsections": [
                {
                    "name": "--help",
                    "content": "Print a short help text and exit.\n",
                    "long": "--help"
                },
                {
                    "name": "-H --halt",
                    "content": "Halt the machine.\n",
                    "flag": "-H",
                    "long": "--halt"
                },
                {
                    "name": "-P --poweroff",
                    "content": "Power-off the machine (the default).\n",
                    "flag": "-P",
                    "long": "--poweroff"
                },
                {
                    "name": "-r --reboot",
                    "content": "Reboot the machine.\n",
                    "flag": "-r",
                    "long": "--reboot"
                },
                {
                    "name": "-h",
                    "content": "Equivalent to --poweroff, unless --halt is specified.\n",
                    "flag": "-h"
                },
                {
                    "name": "-k",
                    "content": "Do not halt, power-off, reboot, just write wall message.\n",
                    "flag": "-k"
                },
                {
                    "name": "--no-wall",
                    "content": "Do not send wall message before halt, power-off, reboot.\n",
                    "long": "--no-wall"
                },
                {
                    "name": "-c",
                    "content": "Cancel a pending shutdown. This may be used to cancel the effect of an invocation of\nshutdown with a time argument that is not \"+0\" or \"now\".\n",
                    "flag": "-c"
                }
            ]
        },
        "EXIT STATUS": {
            "content": "On success, 0 is returned, a non-zero failure code otherwise.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "systemd(1), systemctl(1), halt(8), wall(1)\n\n\n\nsystemd 249                                                                              SHUTDOWN(8)",
            "subsections": []
        }
    },
    "summary": "shutdown - Halt, power-off or reboot the machine",
    "flags": [
        {
            "flag": "",
            "long": "--help",
            "arg": null,
            "description": "Print a short help text and exit."
        },
        {
            "flag": "-H",
            "long": "--halt",
            "arg": null,
            "description": "Halt the machine."
        },
        {
            "flag": "-P",
            "long": "--poweroff",
            "arg": null,
            "description": "Power-off the machine (the default)."
        },
        {
            "flag": "-r",
            "long": "--reboot",
            "arg": null,
            "description": "Reboot the machine."
        },
        {
            "flag": "-h",
            "long": null,
            "arg": null,
            "description": "Equivalent to --poweroff, unless --halt is specified."
        },
        {
            "flag": "-k",
            "long": null,
            "arg": null,
            "description": "Do not halt, power-off, reboot, just write wall message."
        },
        {
            "flag": "",
            "long": "--no-wall",
            "arg": null,
            "description": "Do not send wall message before halt, power-off, reboot."
        },
        {
            "flag": "-c",
            "long": null,
            "arg": null,
            "description": "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\"."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "systemd",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/systemd/1/json"
        },
        {
            "name": "systemctl",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/systemctl/1/json"
        },
        {
            "name": "halt",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/halt/8/json"
        },
        {
            "name": "wall",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/wall/1/json"
        }
    ]
}