• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

showmount Command Examples in Linux

by admin

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.

showmount Command Examples

There are not several examples to demonstrate here. But below is a list of the most commonly used examples.

1. To get the list of available options and usage of the command:

# showmount -h
# showmount --help

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:

# showmount -a
# showmount --all

3. If you only want to list the directories mounted by remote clients, use the -d option.

# showmount -d 192.168.10.10
# showmount --directories 192.168.10.10

4. To print the list of exported filesystems.

# showmount -e 192.168.10.10
# showmount --exports 192.168.10.10

5. To remove the header from the showmount command output, use the -h option:

# showmount --no-headers

6. To view the version of the showmount command/package being used:

# showmount -v
# showmount --version

Filed Under: Linux

Some more articles you might also be interested in …

  1. kpackagetool5 Command Examples in Linux
  2. CentOS / RHEL 6 : how to start the services interactively during boot (to disable/abort some services)
  3. What is the purpose of “system user” in MySQL Replication
  4. sesearch: command not found
  5. module: command not found
  6. Troubleshooting common NFS issues in Linux
  7. How to Change Default Port of Apache On RHEL/CentOS 7
  8. dig: command not found
  9. Ubuntu Linux – yED(Graph Editor) Alternate of Microsoft Office Visio
  10. Configuring Remote Logging using rsyslog in CentOS/RHEL

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright