systemctl status <unit>State, main PID, memory use and the latest log lines for a service.
Example
systemctl status sshControls systemd: start, stop, enable and inspect services, timers and the boot target.
systemctl status <unit>State, main PID, memory use and the latest log lines for a service.
Example
systemctl status sshsudo systemctl start <unit>Starts a service now.
Example
sudo systemctl start nginxsudo systemctl stop <unit>Stops a service.
Example
sudo systemctl stop nginxsudo systemctl restart <unit>Stops and starts it again.
Example
sudo systemctl restart sshsudo systemctl reload <unit>Reloads configuration without dropping connections, if the service supports it.
Example
sudo systemctl reload nginxsudo systemctl enable --now <unit>Starts the service and makes it start at boot.
Example
sudo systemctl enable --now fail2bansudo systemctl disable --now <unit>Stops it and removes it from boot.
Example
sudo systemctl disable --now telnet.socketsudo systemctl mask <unit>Prevents a unit from being started at all, even as a dependency.
Example
sudo systemctl mask rpcbindsystemctl list-units --type=service --state=runningEvery running service.
systemctl list-unit-files --state=enabledEverything set to start at boot — a key persistence check.
systemctl --failedUnits that failed to start.
systemctl list-timers --allsystemd timers, the modern replacement for cron and another persistence location.
systemctl cat <unit>Prints the unit file plus any drop-in overrides.
Example
systemctl cat sshsystemctl show <unit> -p ExecStart,User,FragmentPathSpecific properties: the command it runs, the user and where the unit file lives.
Example
systemctl show nginx -p ExecStart,User,FragmentPathsystemctl list-dependencies <unit>What a unit pulls in.
Example
systemctl list-dependencies multi-user.targetsudo systemctl edit <unit>Creates a drop-in override instead of editing the vendor unit file.
Example
sudo systemctl edit nginxsudo systemctl daemon-reloadReloads unit files after you change them.
systemctl --user list-unitsPer-user services, which run without root and are easy to overlook.
systemctl get-defaultThe target the system boots into (graphical or multi-user).