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=serviceSystemd 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.