How to use the showmount command in Linux systems

  
                

Many people are unfamiliar with the showmount command. I don't know the usage of this command. Today, Xiaobian will give you a brief introduction to the use of the showmount command on Linux, so that everyone can have a deeper understanding of the showmount command. Related information

showmount command queries the NFS server

# showmount --help

Usage::

Use showmount [-adehv ]

[--all] [--directories] [--exports]

[--no-headers] [--help] [--version] [host]

-a or --all

Displays the client hostname and mount point directory in a format such as host:dir.

-d or --directories

Only the directory names that are mounted by the client are displayed.

-e or --exports

Displays the output list of the NFS server.

-h or --help

Displays help information.

-v or --version

Display the version letter.

--no-headers

Suppresses the description header information.

Displaying NFS client information

# showmount

Displaying information about the specified NFS server connection to the NFS client

# showmount 192.168.1.1 #this ip is nfs Server

Display output directory list

# showmount -e

Display the specified NFS server output directory list (also known as shared directory list)

# Showmount -e 192.168.1.1

Displaying mounted shared directories

# showmount -d

Displaying client information and shared directories

# showmount -a

Display client information and shared directory of the specified NFS server

# showmount -a 192.168.1.1

The above is the method of using the showmount command in Linux, showmount The command displays the NFS information, such as the version, NFS client, and output directory list.

Copyright © Windows knowledge All Rights Reserved