Linux Command

exportfs

Manage NFS shared file system list

Supplementary instructions

The exportfs command is used to manage the file system list of the current NFS share.

parameter:

-a Turns on or off all directory sharing.
-o options,... specifies a list of sharing options, similar to those described in exports(5).
-i Ignore the /etc/exports file, using only the default and command-line options.
-r Reshare all directories. It synchronizes /var/lib/nfs/xtab and /etc/exports. It removes deleted entries in /etc/exports from /var/lib/nfs/xtab, removing any entries in the kernel shared table that are no longer valid.
-u Unshare one or more directories.
-f In "new" mode, flush anything except the kernel shared table. Any active clients will get the new share entry added by mountd on their next request.
-v output verbose information. Shows what is being done when sharing or unsharing. When the current sharing list is displayed, sharing options are also displayed.
Keep reading

You may need these next

Related picks, plus your reading history and saved articles.