LinuxCommandLibrary

showmount

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 NFS mount information. It shows exported filesystems and current mounts.
Export listing shows available shares. Includes access permissions and allowed hosts.
Directory listing shows what's mounted. Currently active NFS mounts displayed.
All mounts shows host and directory pairs. Useful for auditing NFS usage.
Without host, queries localhost. Shows local NFS server configuration.

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)

Copied to clipboard