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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • 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. gh completion: Generate shell completion scripts for GitHub CLI commands
  2. minicom Command Examples in Linux
  3. How to change the PATH variable in Linux
  4. localectl: command not found
  5. 7za – File archiver with a high compression ratio (Command Examples)
  6. lxterminal Command Examples in Linux
  7. namei Command Examples in Linux
  8. env Command Examples in Linux
  9. black – A Python auto code formatter (Command Examples)
  10. dnsmap: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright