← 返回命令列表

Linux command

systemctl-list-paths 命令

文本

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

常用示例

Example

systemctl list-paths

Example

systemctl list-paths [pattern]

Example

systemctl list-paths -a

Example

systemctl list-paths --state [state]

Example

systemctl list-paths --show-types

说明

systemctl list-paths displays path units currently loaded in memory, ordered by the paths they watch. Path units activate other units when specified filesystem paths are modified. The output shows the watched path, the path unit name, and its current state.

参数

-a, --all
Include inactive path units
--state= _STATE_
Filter by state
--show-types
Display unit types in output
--no-legend
Suppress header and footer
--no-pager
Disable pager

FAQ

What is the systemctl-list-paths command used for?

systemctl list-paths displays path units currently loaded in memory, ordered by the paths they watch. Path units activate other units when specified filesystem paths are modified. The output shows the watched path, the path unit name, and its current state.

How do I run a basic systemctl-list-paths example?

Run `systemctl list-paths` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -a, --all do in systemctl-list-paths?

Include inactive path units