lsnfsexp Command

Purpose

Displays the characteristics of directories that are exported with the Network File System (NFS).

Syntax

/usr/sbin/lsnfsexp [ -c | -l ] [ Directory ] [ -V Exported Version] [ -f Exports_file ]

Description

The lsnfsexp command displays the characteristics of NFS-exported directories. The Directory parameter specifies the directory to be displayed. If no directory is specified, all directories exported with NFS will be displayed.

Flags

Item Description
-c Specifies that the output should be in colon format.
-l (Lowercase L) Specifies that the output should be in list format. This flag is the default.
Directory Specifies the directory to be displayed. If no directory is specified, all directories exported with NFS will be displayed.
-f Exports_file Specifies the full path name of the export file to use if other than /etc/exports.
-V Exported Version Specifies the version of the directory to be displayed. Valid version numbers are 2, 3 and 4.

Examples

  1. To list all of the directories currently exported with NFS in the colon format, enter:
    lsnfsexp -c
  2. To list all of the directories currently exported with NFS in the colon format and use a specified path name other than /etc/exports enter:
    lsnfsexp -c -f /etc/exports.other
  3. To list the entry for the /common/documents directory that is exported as version 4, enter the following command:
    lsnfsexp /common/documents -V 4

File

Item Description
/etc/exports Lists the directories the server can export.