Skip to content

Commit

Permalink
update systemctl cli guide
Browse files Browse the repository at this point in the history
  • Loading branch information
truongnx authored and truongnx committed May 8, 2024
1 parent 2d442ae commit 73f12f2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pages/linux/systemctl.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# systemctl

> Control the systemd system and service manager. You may need to run with `sudo` prefix to avoid permission denied issues.
> Control the systemd system and service manager.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html>.
- Show all running services:
Expand All @@ -19,11 +19,7 @@

`systemctl {{enable|disable}} {{unit}}`

- Mask/Unmask a unit to prevent enablement and manual activation:

`systemctl {{mask|unmask}} {{unit}}`

- Reload systemd, scanning for new or changed units:
- Reload systemd, scan for new or changed units:

`systemctl daemon-reload`

Expand All @@ -34,3 +30,7 @@
- List all units of service/socket/automount filter by running/failed state:

`systemctl list-units --type={{service|socket|automount}} --state={{failed|running}}`

- Show the source unit files:

`systemctl cat {{unit}}`

0 comments on commit 73f12f2

Please sign in to comment.