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

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • 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. How to transfer files securely using sftp (examples included)
  2. What are different Samba Server Types
  3. Linux OS Service ‘kdump’
  4. How to Clone Linux disk partition over network using dd
  5. How to Setup a squid proxy server on CentOS/RHEL 7
  6. Understanding RPM Versions and Naming Schemes
  7. How To Identify User Deleting Files From A Given Directory in Linux
  8. How to Disable Ctrl+c or Ctrl+z Using the “trap” Command in Linux
  9. How to resize (extend) a partition-based file system in Linux
  10. CentOS / RHEL : How to delete LVM volume

You May Also Like

Primary Sidebar

Recent Posts

  • How to set the default character set in MySQL and how to propagate it in a master-master replication scenario
  • “Connection reset by peer” – error while ssh into a CentOS/RHEL system with a specific user only
  • MySQL: how to figure out which session holds which table level or global read locks
  • Recommended Configuration of the MySQL Performance Schema
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary