List of all running services in Debian

A service on any operating system is defined as a background application that continues to wait for client requests. As soon as it receives these requests, it performs the necessary actions so that the request can be properly handled. A service always has a status associated with it, for example, active, enabled, running, inactive, dead, and so on. The sysadmin is primarily concerned with the services that are currently running on the operating system. In today’s article, we will look at various methods for listing all running services in Debian 10.

Ways to list all running services in Debian 10:

You can choose any of the following three methods to list all running services in Debian 10:

Method # 1: Using the “systemctl” command with the “list-units” parameter in Debian 10

You can use the “systemctl” command with the “list-units” parameter to list all running services in Debian 10, as shown below:

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

When you run the above command, a list of all running services in Debian 10 will be displayed on your terminal.

Method # 2: Using the “systemctl” command without the “list-units” parameter in Debian 10

You can use the “systemctl” command without the “list-units” parameter to list all running services in Debian 10, as shown below:

$ systemctl --type=service --state=running

When you run the above command, a list of all running services in Debian 10 will be displayed on your terminal.

Method # 3: Using the “pstree” command in Debian 10

You can use the “pstree” command to list all running services in Debian 10, as shown below:

$ pstree

When you run the above command, a list of all running services in Debian 10 will be displayed in a nice and clean tree structure on your terminal.

Output

The three methods you have shared in this article are intended to show you how you can list all running services on Debian 10. You can use the same methods on Ubuntu 20.04 and Linux Mint 20, while the commands for CentOS 8 can slightly different. However, you can conveniently choose any of the methods shared with you in this article to list all the services running on Debian 10.

Please disable your ad blocker or whitelist this site!

Sidebar