« Back to Systemd: Frequently Asked Questions

How to list all services with systemctl?

This article has last been updated at .

How to list all services with systemctl?

Run systemctl with the 'list-unit-files' subcommand and provide a filter to list all services.

systemctl list-unit-files --type=service

Systemd comes with the systemctl command, which is the primary utility to query, introspect, or manage units. It can be used to show available units, including listing services. The basic subcommand list-unit-files can be combined with the --type option to select them.

Usage

root@debian-test:~# systemctl list-unit-files --type=service
UNIT FILE                              STATE           PRESET  
apache-htcacheclean.service            disabled        enabled 
apache-htcacheclean@.service           disabled        enabled 
apache2.service                        enabled         enabled 
apache2@.service                       disabled        enabled 
apparmor.service                       enabled         enabled 
apt-daily-upgrade.service              static          -       
apt-daily.service                      static          -       
auditd.service                         enabled         enabled 
autovt@.service                        alias           -       
console-getty.service                  disabled        disabled
console-setup.service                  enabled         enabled 
container-getty@.service               static          -       
cron.service                           enabled         enabled 
cryptdisks-early.service               masked          enabled 
cryptdisks.service                     masked          enabled 
dbus-org.freedesktop.hostname1.service alias           -       
dbus-org.freedesktop.locale1.service   alias           -       
dbus-org.freedesktop.login1.service    alias           -       
dbus-org.freedesktop.timedate1.service alias           -       
dbus-org.freedesktop.timesync1.service alias           -       
dbus.service                           static          -       
debug-shell.service                    disabled        disabled
dovecot.service                        enabled         enabled 
dpkg-db-backup.service                 static          -       
e2scrub@.service                       static          -       
e2scrub_all.service                    static          -       
e2scrub_fail@.service                  static          -       
e2scrub_reap.service                   enabled         enabled 
emergency.service                      static          -       
...
systemd-update-utmp.service            static          -       
systemd-user-sessions.service          static          -       
systemd-volatile-root.service          static          -       
udev.service                           alias           -       
user-runtime-dir@.service              static          -       
user@.service                          static          -       
x11-common.service                     masked          enabled 
xpra.service                           disabled        enabled 

125 unit files listed.

Learn more about systemctl

This article uses the systemctl command to achieve its tasks. For this popular tool there is a cheat sheet available!

» Mastering the tool: systemctl

systemctl

Other questions related to Systemd

Feedback

Small picture of Michael Boelen

This article has been written by our Linux security expert Michael Boelen. With focus on creating high-quality articles and relevant examples, he wants to improve the field of Linux security. No more web full of copy-pasted blog posts.

Discovered outdated information or have a question? Share your thoughts. Thanks for your contribution!

Mastodon icon

Related articles

Like to learn more? Here is a list of articles within the same category or having similar tags.