HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

systemctl list-paths — List path units currently in memory, ordered by path. More information: <https://www.freedesktop.org

Submitted by: @import:tldr-pages··
0
Viewed 0 times
systemctl list-pathscommandpathmemoryclicurrentlyunitslist
linux

Problem

How to use the systemctl list-paths command: List path units currently in memory, ordered by path. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#list-paths%20PATTERN%E2%80%A6>.

Solution

systemctl list-paths — List path units currently in memory, ordered by path. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#list-paths%20PATTERN%E2%80%A6>.

Show all path units currently in memory:
systemctl list-paths


List path units matching specific wildcard pattern ie, shell-globbing:
systemctl list-paths {{pattern}}


List path units that match with multiple patterns:
systemctl list-paths {{pattern_1 pattern_2 ...}}


Show all path units, including inactive ones:
systemctl list-paths {{[-a|--all]}}


Filter path units by state:
systemctl list-paths --state {{state}}


Also show unit types in the output:
systemctl list-paths --show-types

Code Snippets

Show all path units currently in memory

systemctl list-paths

List path units matching specific wildcard pattern ie, `shell-globbing`

systemctl list-paths {{pattern}}

List path units that match with multiple patterns

systemctl list-paths {{pattern_1 pattern_2 ...}}

Show all path units, including inactive ones

systemctl list-paths {{[-a|--all]}}

Filter path units by state

systemctl list-paths --state {{state}}

Context

tldr-pages: linux/systemctl list-paths

Revisions (0)

No revisions yet.