If you are the system administrator, you can see all the services like process manager, login, syslog, … running in the background on your device.
These services help with how the system works and connects to other programs. And you can also list all these services on Ubuntu.
Now we’re gonna teach you to list all services by using the systemctl command on Ubuntu 20.04.
The syntax:
$ systemctl [options] [command]
To list all the services, run:
$ systemctl --no-pager
Output:
Run the following command:
$ systemctl list-units --all --type=service --no-pager
Output:
Run:
$ systemctl list-unit-files --no-pager
Output:
The syntax:
$ systemctl list-unit-files --no-pager | grep service_name
For example, I want to search for “session”:
$ systemctl list-unit-files --no-pager | grep session
Output:
We will combine the grep command to do this. For example, I will list systemd service unit files are in the enabled state:
$ systemctl list-unit-files | grep enabled
Output:
For example, I will list systemd service unit files are in the disabled state:
$ systemctl list-unit-files | grep disabled
Output:
$ pstree
Output:
Run the following command:
$ systemd-cgtop
Output:
We just taught you to list all services by using the systemctl command on Ubuntu 20.04.
Thank you for referring!
Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications including CCNA RS, SCP, and ACE. As an IT engineer and technical author, he writes for various websites.
Today, IBM announced the launch of their latest server: the new IBM LinuxONE Emperor 5.…
Welcome to the Ubuntu Weekly Newsletter, Issue 890 for the week of April 27 –…
Singapore | May 27, 2025 | Full-day event How do you build robust, performant edge…
Kolla Ansible provides production-ready containers (here, Docker) and deployment tools for operating OpenStack clouds. This…
This public beta enables the full Ubuntu Desktop experience on the Qualcomm Dragonwing™ QCS6490 and…
Time is running out to be in full compliance with the EU Cyber Resilience Act,…