{
    "content": [
        {
            "type": "text",
            "text": "# halt(8) (man)\n\n**Summary:** halt, poweroff, reboot - Halt, power-off or reboot the machine\n\n**Synopsis:** halt [OPTIONS...]\npoweroff [OPTIONS...]\nreboot [OPTIONS...]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| — | --help | — | Print a short help text and exit. |\n| — | --halt | — | Halt the machine, regardless of which one of the three commands is invoked. |\n| -p | --poweroff | — | Power-off the machine, regardless of which one of the three commands is invoked. |\n| — | --reboot | — | Reboot the machine, regardless of which one of the three commands is invoked. |\n| -f | --force | — | Force immediate halt, power-off, or reboot. When specified once, this results in an immediate but clean shutdown by the  |\n| -w | --wtmp-only | — | Only write wtmp shutdown entry, do not actually halt, power-off, reboot. |\n| -d | --no-wtmp | — | Do not write wtmp shutdown entry. |\n| -n | --no-sync | — | Don't sync hard disks/storage media before halt, power-off, reboot. |\n| — | --no-wall | — | Do not send wall message before halt, power-off, reboot. |\n\n## See Also\n\n- systemd(1)\n- systemctl(1)\n- shutdown(8)\n- wall(1)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (6 lines)\n- **DESCRIPTION** (3 lines)\n- **OPTIONS** (2 lines) — 9 subsections\n  - --help (2 lines)\n  - --halt (2 lines)\n  - -p --poweroff (2 lines)\n  - --reboot (2 lines)\n  - -f --force (5 lines)\n  - -w --wtmp-only (2 lines)\n  - -d --no-wtmp (2 lines)\n  - -n --no-sync (2 lines)\n  - --no-wall (2 lines)\n- **EXIT STATUS** (2 lines)\n- **NOTES** (9 lines)\n- **SEE ALSO** (5 lines)\n\n## Full Content\n\n### NAME\n\nhalt, poweroff, reboot - Halt, power-off or reboot the machine\n\n### SYNOPSIS\n\nhalt [OPTIONS...]\n\npoweroff [OPTIONS...]\n\nreboot [OPTIONS...]\n\n### DESCRIPTION\n\nhalt, poweroff, reboot may be used to halt, power-off, or reboot the machine. All three\ncommands take the same options.\n\n### OPTIONS\n\nThe following options are understood:\n\n#### --help\n\nPrint a short help text and exit.\n\n#### --halt\n\nHalt the machine, regardless of which one of the three commands is invoked.\n\n#### -p --poweroff\n\nPower-off the machine, regardless of which one of the three commands is invoked.\n\n#### --reboot\n\nReboot the machine, regardless of which one of the three commands is invoked.\n\n#### -f --force\n\nForce immediate halt, power-off, or reboot. When specified once, this results in an\nimmediate but clean shutdown by the system manager. When specified twice, this results in\nan immediate shutdown without contacting the system manager. See the description of\n--force in systemctl(1) for more details.\n\n#### -w --wtmp-only\n\nOnly write wtmp shutdown entry, do not actually halt, power-off, reboot.\n\n#### -d --no-wtmp\n\nDo not write wtmp shutdown entry.\n\n#### -n --no-sync\n\nDon't sync hard disks/storage media before halt, power-off, reboot.\n\n#### --no-wall\n\nDo not send wall message before halt, power-off, reboot.\n\n### EXIT STATUS\n\nOn success, 0 is returned, a non-zero failure code otherwise.\n\n### NOTES\n\nThese commands are implemented in a way that preserves basic compatibility with the original\nSysV commands.  systemctl(1) verbs halt, poweroff, reboot 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\n### SEE ALSO\n\nsystemd(1), systemctl(1), shutdown(8), wall(1)\n\n\n\nsystemd 249                                                                                  HALT(8)\n\n"
        }
    ],
    "structuredContent": {
        "command": "halt",
        "section": "8",
        "mode": "man",
        "summary": "halt, poweroff, reboot - Halt, power-off or reboot the machine",
        "synopsis": "halt [OPTIONS...]\npoweroff [OPTIONS...]\nreboot [OPTIONS...]",
        "flags": [
            {
                "flag": "",
                "long": "--help",
                "arg": null,
                "description": "Print a short help text and exit."
            },
            {
                "flag": "",
                "long": "--halt",
                "arg": null,
                "description": "Halt the machine, regardless of which one of the three commands is invoked."
            },
            {
                "flag": "-p",
                "long": "--poweroff",
                "arg": null,
                "description": "Power-off the machine, regardless of which one of the three commands is invoked."
            },
            {
                "flag": "",
                "long": "--reboot",
                "arg": null,
                "description": "Reboot the machine, regardless of which one of the three commands is invoked."
            },
            {
                "flag": "-f",
                "long": "--force",
                "arg": null,
                "description": "Force immediate halt, power-off, or reboot. When specified once, this results in an immediate but clean shutdown by the system manager. When specified twice, this results in an immediate shutdown without contacting the system manager. See the description of --force in systemctl(1) for more details."
            },
            {
                "flag": "-w",
                "long": "--wtmp-only",
                "arg": null,
                "description": "Only write wtmp shutdown entry, do not actually halt, power-off, reboot."
            },
            {
                "flag": "-d",
                "long": "--no-wtmp",
                "arg": null,
                "description": "Do not write wtmp shutdown entry."
            },
            {
                "flag": "-n",
                "long": "--no-sync",
                "arg": null,
                "description": "Don't sync hard disks/storage media before halt, power-off, reboot."
            },
            {
                "flag": "",
                "long": "--no-wall",
                "arg": null,
                "description": "Do not send wall message before halt, power-off, reboot."
            }
        ],
        "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"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 2,
                "subsections": [
                    {
                        "name": "--help",
                        "lines": 2,
                        "long": "--help"
                    },
                    {
                        "name": "--halt",
                        "lines": 2,
                        "long": "--halt"
                    },
                    {
                        "name": "-p --poweroff",
                        "lines": 2,
                        "flag": "-p",
                        "long": "--poweroff"
                    },
                    {
                        "name": "--reboot",
                        "lines": 2,
                        "long": "--reboot"
                    },
                    {
                        "name": "-f --force",
                        "lines": 5,
                        "flag": "-f",
                        "long": "--force"
                    },
                    {
                        "name": "-w --wtmp-only",
                        "lines": 2,
                        "flag": "-w",
                        "long": "--wtmp-only"
                    },
                    {
                        "name": "-d --no-wtmp",
                        "lines": 2,
                        "flag": "-d",
                        "long": "--no-wtmp"
                    },
                    {
                        "name": "-n --no-sync",
                        "lines": 2,
                        "flag": "-n",
                        "long": "--no-sync"
                    },
                    {
                        "name": "--no-wall",
                        "lines": 2,
                        "long": "--no-wall"
                    }
                ]
            },
            {
                "name": "EXIT STATUS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "NOTES",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}