LinuxCommandLibrary

showmount

Query NFS server export information

TLDR

Show exports

$ showmount -e [server]
copy
Show mounted directories
$ showmount -d [server]
copy
Show all mounts
$ showmount -a [server]
copy
Show local exports
$ showmount -e
copy
No header output
$ showmount --no-headers -e [server]
copy

SYNOPSIS

showmount [-e] [-d] [-a] [options] [host]

DESCRIPTION

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.

PARAMETERS

-e, --exports

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

CAVEATS

Requires rpcbind/portmapper. Firewalls may block queries. NFSv4 may not report all info.

HISTORY

showmount is part of NFS utilities dating to original NFS implementations. It provides essential information for NFS administration.

SEE ALSO

mount(8), exports(5), nfsd(8)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community