systemctl is the systemd command for controlling the Linux Services. The services on Linux can be enabled, disabled, and masked. The details of each service are stored in the unit files located in the /usr/lib/systemd directory. This article is a comprehensive guide on how to list all the running services under systemd in a Linux system.
View Running Services in Linux Under Systemd
The systemctl is the command for managing the systemd init services. You can use this command to stop and start the service, check the status of the running services, and check the dependencies of the services. To find the list of running services, type the list-units in the subcommand with the systemctl:
In the above output the UNIT is the name of the service, the LOAD is checking the files parsed by systemd or not, ACTIVE is the high-level state of the unit, SUB is the low-level state of the unit and DESCRIPTION is a detailed information of the Unit.
Press the Q key to quit the list of services and return to the terminal.
View Active Services in Linux Under Systemd
Run the following systemctl command in the terminal for viewing all currently active services in Linux:
List All Running Services Under Systemd in Linux
It is difficult to distinguish the running services from the list of all the services. Get a quick view of running services by running the following command in the terminal:
List All Enabled Services Under Systemd in Linux
To list all the services, that will automatically start when you boot the Linux system execute the below command:
List All Disabled Services Under Systemd in Linux
Below is the command to get the list of all the disabled services under the systemd in Linux:
Detail Information of Services Running Under Systemd in Linux
The cup command is used to get detailed information on the services under the system and service manager of Linux.
The systemd is the system and service manager of major Linux distributions. The systemd services are managed by the systemctl command and with the efficient knowledge of systemctl utility, you can manage services on your Linux system. In this tutorial, we have mentioned all the ways to list the services under systemd in Linux.