| by Arround The Web | No comments

How to List All Running Services Under Systemd in Linux

Systemd, also known as a system and service manager is the default service manager of the different Linux distributions. This system is the init tool of Linux which is the first step started when the Linux kernel boots.

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:

systemctl list-units --type=service

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:

systemctl list-units --type=service --state=active

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:

systemctl list-units --type=service --state=running

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:

systemctl list-unit-files --state=enabled

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:

systemctl list-unit-files --state=disabled

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.

systemctl status cups.service

Bottom Line

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.

Share Button

Source: linuxhint.com

Leave a Reply