← 返回命令列表

Linux command

systemctl-is-enabled 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

systemctl is-enabled [unit]

Example

systemctl is-enabled [unit1 unit2 ...]

Quiet

systemctl is-enabled [unit] -q

Example

systemctl is-enabled [unit] -l

说明

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.

参数

-q, --quiet
Suppress output, return only exit code
-l, --full
Do not truncate output; also show installation targets in the output
--system
Check system units (default)
--user
Check user units

FAQ

What is the systemctl-is-enabled command used for?

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.

How do I run a basic systemctl-is-enabled example?

Run `systemctl is-enabled [unit]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -q, --quiet do in systemctl-is-enabled?

Suppress output, return only exit code