mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-16 16:49:16 +00:00
Update cheatsheets
This commit is contained in:
38
tldr/linux/systemctl-halt
Normal file
38
tldr/linux/systemctl-halt
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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/systemctl.html#halt>.
|
||||
|
||||
- Halt the system:
|
||||
|
||||
`systemctl halt`
|
||||
|
||||
- Halt the system immediately without asking services to stop gracefully:
|
||||
|
||||
`systemctl halt --force`
|
||||
|
||||
- Halt the system immediately without sending notifications to logged-in users:
|
||||
|
||||
`systemctl halt --force --no-wall`
|
||||
|
||||
- Halt the system immediately without terminating any processes or unmounting filesystems (dangerous, may cause data loss):
|
||||
|
||||
`systemctl halt --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`
|
||||
Reference in New Issue
Block a user