LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

systemctl-list-unit-files

List installed unit files and states

TLDR

List installed unit files
$ systemctl list-unit-files
copy
Filter by state
$ systemctl list-unit-files --state [enabled|disabled|static]
copy
Filter by type
$ systemctl list-unit-files -t [service|socket|timer]
copy
Filter by name pattern
$ systemctl list-unit-files '[pattern*]'
copy
Output without pager
$ systemctl list-unit-files --no-pager
copy
Output without headers
$ systemctl list-unit-files --no-legend
copy

SYNOPSIS

systemctl list-unit-files [OPTIONS] [PATTERN...]

DESCRIPTION

systemctl list-unit-files displays all installed unit files and their enablement states. Unlike `list-units` which shows runtime state, this shows the boot configuration for all available units.The output shows the unit file name and its state: enabled, disabled, static, masked, generated, transient, indirect, or alias.

PARAMETERS

--state= STATE

Filter by enablement state (enabled, disabled, static, masked, etc.)
-t, --type= TYPE
Filter by unit type
--no-pager
Disable pager output
--no-legend
Suppress header and footer

ENABLEMENT STATES

enabled - Starts automatically at bootdisabled - Does not start at bootstatic - No install section, started as dependencymasked - Completely blockedindirect - Enabled via another unit

CAVEATS

Shows all installed unit files regardless of runtime state. Some unit files may be present but never used. Static units cannot be enabled directly.

HISTORY

The list-unit-files subcommand provides visibility into the full set of available units and their boot configuration, complementing `list-units` which shows only currently loaded units.

SEE ALSO

Copied to clipboard
Kai