← 返回命令列表

Linux command

showmount 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Show exports

showmount -e [server]

Show mounted directories

showmount -d [server]

Show all mounts

showmount -a [server]

Show local exports

showmount -e

No header output

showmount --no-headers -e [server]

说明

showmount queries an NFS server's mount daemon to display information about exported filesystems and active mounts. The -e option lists all exported directories along with their access permissions and allowed client hosts, which is the most common usage for discovering available NFS shares. The -d option shows only directories that are currently mounted by clients, while -a displays all active mount points as host:directory pairs, useful for auditing NFS usage and identifying connected clients. Without a host argument, the command queries the local machine's NFS server.

参数

-e, --exports
Show exports.
-d, --directories
Show mounted directories.
-a, --all
Show all mount points.
--no-headers
Suppress headers.
--version
Show version.

FAQ

What is the showmount command used for?

showmount queries an NFS server's mount daemon to display information about exported filesystems and active mounts. The -e option lists all exported directories along with their access permissions and allowed client hosts, which is the most common usage for discovering available NFS shares. The -d option shows only directories that are currently mounted by clients, while -a displays all active mount points as host:directory pairs, useful for auditing NFS usage and identifying connected clients. Without a host argument, the command queries the local machine's NFS server.

How do I run a basic showmount example?

Run `showmount -e [server]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -e, --exports do in showmount?

Show exports.