To show the shares on an NFS (Network File System) server, you can use the showmount
command with the -e
option.
For example, to show the shares on the NFS server nfs.example.com
, you can use the following command:
showmount -e nfs.example.com
This will display a list of all the shares on the NFS server nfs.example.com
.
The showmount
command displays information about NFS exports, which are the directories that are shared on the NFS server. The -e
option tells showmount
to display a list of all the exported directories on the server.
You can also use the -d
option to display the list of directories that are shared with a specific client. For example:
showmount -d nfs.example.com
This will display a list of all the directories that are shared with the client nfs.example.com
.
You can use the -a
option to display both the exported directories and the clients that are allowed to access them. For example:
showmount -a nfs.example.com
This will display a list of all the exported directories on the server nfs.example.com
, along with the clients that are allowed to access them.
For more information about using the showmount
command, you can refer to the showmount
manual page or use the --help
option. For example:
man showmount
showmount --help