{
    "mode": "man",
    "parameter": "reboot",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/reboot/8/json",
    "generated": "2026-09-23T06:03:32Z",
    "synopsis": "poweroff [OPTIONS...]\nreboot [OPTIONS...]\nhalt [OPTIONS...]",
    "sections": {
        "NAME": {
            "content": "poweroff, reboot, halt - Power off, reboot, or halt the machine\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "poweroff [OPTIONS...]\n\nreboot [OPTIONS...]\n\nhalt [OPTIONS...]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "poweroff, reboot, and halt may be used to power off, reboot, or halt the machine. All three\ncommands take the same options.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "The following options are understood:\n",
            "subsections": [
                {
                    "name": "--help",
                    "content": "Print a short help text and exit.\n\nAdded in version 253.\n",
                    "long": "--help"
                },
                {
                    "name": "--halt",
                    "content": "Halt the machine, regardless of which one of the three commands is invoked.\n\nAdded in version 253.\n",
                    "long": "--halt"
                },
                {
                    "name": "-p --poweroff",
                    "content": "Power off the machine, when either halt or poweroff is invoked. This option is ignored\nwhen reboot is invoked.\n\nAdded in version 253.\n",
                    "flag": "-p",
                    "long": "--poweroff"
                },
                {
                    "name": "--reboot",
                    "content": "Reboot the machine, regardless of which one of the three commands is invoked.\n\nAdded in version 253.\n",
                    "long": "--reboot"
                },
                {
                    "name": "-f --force",
                    "content": "Force immediate power-off, halt, or reboot. If specified, the command does not contact\nthe init system. In most cases, filesystems are not properly unmounted before shutdown.\nFor example, the command reboot -f is mostly equivalent to systemctl reboot -ff, instead\nof systemctl reboot -f.\n\nAdded in version 253.\n",
                    "flag": "-f",
                    "long": "--force"
                },
                {
                    "name": "-w --wtmp-only",
                    "content": "Only write wtmp shutdown entry, do not actually power off, reboot, or halt.\n\nAdded in version 253.\n",
                    "flag": "-w",
                    "long": "--wtmp-only"
                },
                {
                    "name": "-d --no-wtmp",
                    "content": "Do not write wtmp shutdown entry.\n\nAdded in version 253.\n",
                    "flag": "-d",
                    "long": "--no-wtmp"
                },
                {
                    "name": "-n --no-sync",
                    "content": "Don't sync hard disks/storage media before power-off, reboot, or halt.\n\nAdded in version 253.\n",
                    "flag": "-n",
                    "long": "--no-sync"
                },
                {
                    "name": "--no-wall",
                    "content": "Do not send wall message before power-off, reboot, or halt.\n\nAdded in version 253.\n",
                    "long": "--no-wall"
                }
            ]
        },
        "EXIT STATUS": {
            "content": "On success, 0 is returned, a non-zero failure code otherwise.\n",
            "subsections": []
        },
        "NOTES": {
            "content": "These commands are implemented in a way that preserves basic compatibility with the original\nSysV commands.  systemctl(1) verbs poweroff, reboot, halt provide the same functionality with\nsome additional features.\n\nNote that on many SysV systems halt used to be synonymous to poweroff, i.e. both commands\nwould equally result in powering the machine off. systemd is more accurate here, and halt\nresults in halting the machine only (leaving power on), and poweroff is required to actually\npower it off.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "systemd(1), systemctl(1), shutdown(8), wall(1)\n\nsystemd 255                                                                              POWEROFF(8)",
            "subsections": []
        }
    },
    "summary": "poweroff, reboot, halt - Power off, reboot, or halt the machine",
    "flags": [
        {
            "flag": "",
            "long": "--help",
            "arg": null,
            "description": "Print a short help text and exit. Added in version 253."
        },
        {
            "flag": "",
            "long": "--halt",
            "arg": null,
            "description": "Halt the machine, regardless of which one of the three commands is invoked. Added in version 253."
        },
        {
            "flag": "-p",
            "long": "--poweroff",
            "arg": null,
            "description": "Power off the machine, when either halt or poweroff is invoked. This option is ignored when reboot is invoked. Added in version 253."
        },
        {
            "flag": "",
            "long": "--reboot",
            "arg": null,
            "description": "Reboot the machine, regardless of which one of the three commands is invoked. Added in version 253."
        },
        {
            "flag": "-f",
            "long": "--force",
            "arg": null,
            "description": "Force immediate power-off, halt, or reboot. If specified, the command does not contact the init system. In most cases, filesystems are not properly unmounted before shutdown. For example, the command reboot -f is mostly equivalent to systemctl reboot -ff, instead of systemctl reboot -f. Added in version 253."
        },
        {
            "flag": "-w",
            "long": "--wtmp-only",
            "arg": null,
            "description": "Only write wtmp shutdown entry, do not actually power off, reboot, or halt. Added in version 253."
        },
        {
            "flag": "-d",
            "long": "--no-wtmp",
            "arg": null,
            "description": "Do not write wtmp shutdown entry. Added in version 253."
        },
        {
            "flag": "-n",
            "long": "--no-sync",
            "arg": null,
            "description": "Don't sync hard disks/storage media before power-off, reboot, or halt. Added in version 253."
        },
        {
            "flag": "",
            "long": "--no-wall",
            "arg": null,
            "description": "Do not send wall message before power-off, reboot, or halt. Added in version 253."
        }
    ],
    "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": "shutdown",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/shutdown/8/json"
        },
        {
            "name": "wall",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/wall/1/json"
        }
    ]
}