List enabled service unit files
Build a paste-ready command, then review its compatibility and effects before running it.
systemctl list-unit-files --type=service --state=enabledread-onlyno known side effects Compatibility
LinuxVerified for Linux using posix, bash, zsh syntax.
Operational knowledgereview due 2027-01-20
Requirementssystemctlsystemctl must be installed and available on PATH.
Version supportsystemctl Current supported releasesVerified for linux using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signalsUNIT FILE STATE PRESETRepresentative successful output; values vary with the selected target and system state.
Known errorssystemctl: command not foundsystemctl is missing or is not available on PATH.
Verifysystemctl list-unit-files --type=service --state=enabledThe output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01systemctlCommandRuns the systemctl stage of this one-liner.
02list-unit-filesArgumentPasses list-unit-files to systemctl.
03--type=serviceOptionConfigures systemctl with the --type=service option.
04--state=enabledOptionConfigures systemctl with the --state=enabled option.
Example input
systemctl list-unit-files --type=service --state=enabled
Example output
UNIT FILE STATE PRESET
cron.service enabled enabled
nginx.service enabled disabled
Illustrative output — exact values vary by system and data.
Official sources