showmount

Query NFS server export information

TLDR

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]

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.

INSTALL

sudo apt install nfs-common
sudo dnf install nfs-utils
sudo pacman -S nfs-utils
sudo apk add nfs-utils
nix profile install nixpkgs#nfs-utils

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)