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}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.