LinuxCommandLibrary

systemctl-list-automounts

List automount units and states

TLDR

List automount units

$ systemctl list-automounts
copy
List all including inactive
$ systemctl list-automounts -a
copy
Filter by state
$ systemctl list-automounts --state [active|inactive|failed]
copy
Filter by pattern
$ systemctl list-automounts [pattern]
copy

SYNOPSIS

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

DESCRIPTION

systemctl list-automounts displays automount units currently loaded in memory, showing mount paths and corresponding unit names. Automount units trigger on-demand mounting when the mount point is accessed.
The output shows the path being watched, the automount unit name, and its current state.

PARAMETERS

-a, --all

Include inactive automount units
--state= STATE
Filter by state (active, inactive, failed, etc.)
--no-legend
Suppress header and footer
--no-pager
Disable pager output

CAVEATS

Only shows automount units, not regular mount units. Inactive automounts are hidden by default. For all mount information, use `systemctl list-units --type=mount`.

HISTORY

The list-automounts subcommand provides a focused view of on-demand mounting configuration, separating automount units from regular mounts for easier administration.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community