showmount
What is showmount?
showmount command shows information about an NFS server. This information is maintained by the mountd server on the host. The default value for the host is the value returned by the hostname. With no options, show the clients that have mounted directories from the host. showmount is usually found in /usr/sbin, which is not in the default search path.
showmount Command Options
The options available with the showmount command are as follows:
Option
Description
-a, –all
Print all remote mounts in the format hostname:directory, where hostname is the name of the client and directory is the root of the filesystem that has been mounted.
-d, –directories
List directories that have been remotely mounted by clients.
-e, –exports
Print the list of exported filesystems.
-h, –help
Provide a short help summary.
–no-headers
Do not print headers.
-v, –version
Report the current version of the program.
How to use showmount?
1. To get the list of available options and usage of the command:
2. To list the remote mounts in the format hostname:directory, where hostname is the name of the client and directory is the root of the filesystem that has been mounted:
3. If you only want to list the directories mounted by remote clients, use the -d option.
4. To print the list of exported filesystems.
5. To remove the header from the showmount command output, use the -h option:
6. To view the version of the showmount command/package being used:
Example
Show the nfs share for a particular host
References
Last updated
Was this helpful?