Mounting a NFS target

First of all, we need to install the basic dependencies:

sudo apt install nfs-common -y

Then we can list all available NFS targets from a remote server:

sshowmount -e

Once we determine the appropriate mount, we can go ahead and create a local mounting point and mount the remote NFS location:

sudo mkdir /mnt/documents
sudo mount /mnt/documents

Finally, we can verify if it’s mounted properly and writable:

sudo df -h
sudo mkdir /mnt/documents/misc
sudo touch /mnt/documents/misc/test.txt
sudo ll /mnt/documents/