LinuxCommandLibrary

systemctl-list-paths

List path-activated units

TLDR

List path units

$ systemctl list-paths
copy
Filter by pattern
$ systemctl list-paths [pattern]
copy
List all including inactive
$ systemctl list-paths -a
copy
Filter by state
$ systemctl list-paths --state [state]
copy
Show unit types
$ systemctl list-paths --show-types
copy

SYNOPSIS

systemctl list-paths [OPTIONS] [PATTERN...]

DESCRIPTION

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.

PARAMETERS

-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

CAVEATS

Only shows path units, not related service units. Inactive path units are hidden by default. Path monitoring uses inotify, which has kernel limits on watched paths.

HISTORY

The list-paths subcommand provides a focused view of filesystem-triggered units, which are systemd's replacement for incron or similar file-watching mechanisms.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community