showmount -e 192.168.1.20Lists the NFS export list (shared directories) available on the target IPv4 address.
Enumerating and mounting NFS exports: list shares, check their access controls and mount them to inspect files and permissions.
sudo apt install nfs-commonshowmount -e nfs.example.localQueries the NFS exports from a target identified by its DNS hostname or FQDN.
showmount -eQueries the local host's rpc.mountd to see what the local machine is currently exporting.
showmount -e localhostExplicitly targets the localhost loopback interface to verify local NFS export configurations.
showmount -a nfs-server.corp.internalChecks a specific corporate server to identify unauthorized active client connections.
showmount -e --no-headers 192.168.1.20Lists exports without the descriptive header line, ideal for parsing in bash scripts.
showmount -a --no-headers 10.10.10.15Lists active client mounts without headers for easy text processing or piping to awk.
showmount -d --no-headers 192.168.1.50Lists actively mounted directories without headers to quickly identify hot data paths.
showmount -e 2001:db8::1Queries NFS exports on a target using its IPv6 address.
showmount -a 2001:db8::1Lists active clients and mount points on an IPv6-enabled NFS server.
showmount -e --no-headers target-dmz.localStealthier initial check for exports on a DMZ target to feed directly into mount tools.
showmount -a --no-headers 192.168.100.10Identifies which IP addresses are actively using the share to target specific users.
showmount -a 127.0.0.1Run locally on a compromised server to identify if data is actively being exfiltrated via NFS.
showmount --helpDisplays the help message to verify supported flags and syntax.
showmount --versionChecks the installed version of nfs-utils/showmount for compatibility or bug checking.
showmount --exports --no-headers 172.16.1.5Combines long-form export flag with no-headers for clear, verbose-syntax scripting.
showmount --all --no-headers 172.16.1.5Combines long-form all flag with no-headers to audit connections programmatically.
showmount --directories --no-headers 172.16.1.5Combines long-form directory flag with no-headers to map active file system usage.