Designate NFS shares

Network File System (NFS) shares are available from the command line. NFS sharing isn’t exposed in the Server app, but is simple to configure. NFS sharing works through the /sbin/nfsd daemon.

Enable file sharing if it isn’t already enabled.

  1. If the file /etc/exports doesn’t exist, create it from the command line.

  2. Populate the /etc/exports file according to the guidelines in the exports(5) man page.

Once /etc/exports has been created, /sbin/nfsd will share the folders via NFS according to your settings.

For more information, see the exports(5) and nfsd(8) man pages.

See also
Command-line text editors
Get help for command-line tools