Network File System

Lab

Server

$ apt install nfs-kernel-server
$ systemctl start nfs-kernel-server.service

Edit /etc/exports

/scratch *(rw,async,no_subtree_check,no_root_squash)
$ mkdir /scratch
$ exportfs -a
$ exportfs -v

Client

apt install nfs-common
mkdir /mnt/scratch
mount localhost:/scratch /mnt/scratch

Useful Commands

$ exportfs -v
$ exportfs -ua
$ showmount -e localhost

Reference