mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-10 18:47:06 +00:00
Update cheatsheets
This commit is contained in:
41
linux/systemctl
Normal file
41
linux/systemctl
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl
|
||||
|
||||
> Control the systemd system and service manager.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html>.
|
||||
|
||||
- Show all running services:
|
||||
|
||||
`systemctl status`
|
||||
|
||||
- List failed units:
|
||||
|
||||
`systemctl --failed`
|
||||
|
||||
- Start/Stop/Restart/Reload a service:
|
||||
|
||||
`systemctl {{start|stop|restart|reload}} {{unit}}`
|
||||
|
||||
- Show the status of a unit:
|
||||
|
||||
`systemctl status {{unit}}`
|
||||
|
||||
- Enable/Disable a unit to be started on bootup:
|
||||
|
||||
`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:
|
||||
|
||||
`systemctl daemon-reload`
|
||||
|
||||
- Check if a unit is enabled:
|
||||
|
||||
`systemctl is-enabled {{unit}}`
|
||||
Reference in New Issue
Block a user