Tags: [systemd][systemctl]
I always get confused in the syntax between systemctl
and service
commands. To be updated with the missing ones next time I one them.
systemctl list-units
systemctl list-units --type=service --state=running
systemctl list-units --type=service --state=failed
systemctl status sshd
systemctl restart sshd