Services & Daemons¶
In Linux, services and daemons run in the background to provide system functions. On distributions that use systemd, the systemctl command manages their runtime state and boot behavior.
Useful systemctl Commands¶
Start the specified service.
systemctl start <service>
Stop the specified service.
systemctl stop <service>
Restart the specified service.
systemctl restart <service>
Enable the specified service to start automatically at boot time.
systemctl enable <service>
Disable the specified service from starting automatically at boot time.
systemctl disable <service>
Show the current status and runtime information for the specified service.
systemctl status <service>
Show the dependencies for the specified service.
systemctl list-dependencies <service>
List all installed unit files on the system.
systemctl list-units --all
Display Running Services¶
Filter the systemctl output to display running services and daemons:
systemctl | grep running
Format the same output as aligned columns:
systemctl --no-pager | grep running | column -t
Display Enabled Services¶
List the unit files that are enabled to start automatically at boot:
systemctl list-unit-files --state=enabled