LinuxCommandLibrary

systemctl-is-enabled

Check unit boot enablement state

TLDR

Check enablement state

$ systemctl is-enabled [unit]
copy
Check multiple units
$ systemctl is-enabled [unit1 unit2 ...]
copy
Quiet mode (exit code only)
$ systemctl is-enabled [unit] -q
copy
Show targets and symlinks
$ systemctl is-enabled [unit] -l
copy

SYNOPSIS

systemctl is-enabled [OPTIONS] UNIT...

DESCRIPTION

systemctl is-enabled checks whether unit files are enabled to start at boot. It returns the enablement state: enabled, disabled, static, masked, generated, transient, indirect, or alias.
Exit code 0 indicates the unit is enabled or will start at boot via other means.

PARAMETERS

-q, --quiet

Suppress output, return only exit code
-l, --full
Show installation targets and symlink paths
--user
Check user units

ENABLEMENT STATES

enabled - Will start at boot
disabled - Won't start at boot
static - No install section, started as dependency only
masked - Completely blocked from starting
indirect - Enabled through another unit

CAVEATS

"Enabled" means configured to start, not currently running. Use `is-active` to check runtime state. Static units have no [Install] section and can only be started as dependencies.

HISTORY

The is-enabled subcommand provides a scriptable way to check boot configuration without parsing configuration files or symlinks directly.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community