Linux command
systemctl-list-automounts 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Example
systemctl list-automounts
Example
systemctl list-automounts -a
Example
systemctl list-automounts --state [active|inactive|failed]
Example
systemctl list-automounts [pattern]
说明
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.
参数
- -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
FAQ
What is the systemctl-list-automounts command used for?
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.
How do I run a basic systemctl-list-automounts example?
Run `systemctl list-automounts` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a, --all do in systemctl-list-automounts?
Include inactive automount units