From the course: Linux System Engineer: Network Filesystems Using NFS and Samba

NFS commands

- [Narrator] The NFS Utils package installs various commands for use with NFS on either the server or the client. For instance, exportfs allows us to provide file systems for export to clients. Exportfs will either export a specific file system when it's provided as an argument on the command line, or it can export all files systems in the /etc/exports file and files it in with .exports in the /etc/exports.d directory. Mount allows us to a filesystem using the NFS client. Mount has many NFS specific options. For instance, nfsvers allows us to specify a specific NFS version. Noacl turns off all ACL processing. Noexec turns off the ability to execute commands from the share. Nosuid restricts the use of SUID binaries in the share. Port allows us to specify the port number. Rsize and wsize specify the maximum read and write size in kilobytes in a single NFS read or write operation. Sec=mode sets the Kerberos security mode. There are three modes: authentication, authentication with integrity checking, and lastly, authentication with integrity checking and encrypted NFS data transfer. Tcp/udp chooses the transport protocol. Tcp is always recommended. Other commands include nfsiostat which provides various I/O statistics on NFS mounts. Nfsstat provides NFS and RPC statistics. Mountstats shows per mount statistics. The last two, rpcinfo and showmounts, are not needed for NFS Version Four. For older versions, they show RPC port mapper information of NFS servers and mount stats of remote hosts.

Contents