HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

systemctl-halt — Shut down and halt the system (stop the OS kernel but keep hardware powered on). See also: `halt`. M

Submitted by: @import:tldr-pages··
0
Viewed 0 times
shutthedowncommandandhaltclisystemctl-halt
linux

Problem

How to use the systemctl-halt command: Shut down and halt the system (stop the OS kernel but keep hardware powered on). See also: halt. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#halt>.

Solution

systemctl-halt — Shut down and halt the system (stop the OS kernel but keep hardware powered on). See also: halt. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#halt>.

Halt the system:
systemctl halt


Halt the system immediately without asking services to stop gracefully:
systemctl halt {{[-f|--force]}}


Halt the system immediately without sending notifications to logged-in users:
systemctl halt {{[-f|--force]}} --no-wall


Halt the system immediately without terminating any processes or unmounting filesystems (dangerous, may cause data loss):
systemctl halt {{[-ff|--force --force]}}


Schedule a halt at a specific time (e.g., 23:00):
systemctl halt --when 23:00


Schedule a halt after a certain duration (e.g., 2 hours):
systemctl halt --when +2h


Cancel a scheduled halt:
systemctl halt --when cancel

Code Snippets

Halt the system

systemctl halt

Halt the system immediately without asking services to stop gracefully

systemctl halt {{[-f|--force]}}

Halt the system immediately without sending notifications to logged-in users

systemctl halt {{[-f|--force]}} --no-wall

Halt the system immediately without terminating any processes or unmounting filesystems (dangerous, may cause data loss)

systemctl halt {{[-ff|--force --force]}}

Schedule a halt at a specific time (e.g., 23:00)

systemctl halt --when 23:00

Context

tldr-pages: linux/systemctl-halt

Revisions (0)

No revisions yet.