This is a draft cheat sheet. It is a work in progress and is not finished yet.
Boot Behavior
sudo systemctl enable name.service
|
'name.service' will start on boot |
sudo systemctl enable --now name.service
|
'name.service' will start on boot, as well as now |
sudo systemctl disable name.service
|
'name.service' will no longer start on boot |
sudo systemctl mask name.service
|
'name.service' will no longer run AT ALL |
sudo systemctl unmask name.service
|
allows 'name.service' to run again |
|
Process Inspection
systemctl status name.service
|
systemctl is-active name.service
|
systemctl is-enabled name.service
|
systemctl cat name.service
|
systemctl show name.service
|
|
|
Process Control
sudo systemctl start name.service
|
sudo systemctl stop name.service
|
sudo systemctl restart name.service
|
sudo systemctl reload name.service
|
sudo systemctl kill name.service
|
Process Survey
'systemctl list-units --type=service' |
lists running and active services |
'systemctl list-units --type=service --all' |
lists running, active, and dead services |
'systemctl list-unit-files --type=service --state=enabled' |
lists services that start on boot |
'systemctl list-units --failed' |
lists broken files |
|