22.4 Accessing Shared Ubuntu Folders
The shared folders may be accessed from a client system by mounting them manually from the command-line. Before attempting to mount a remote NFS folder, the nfs-common package should first be installed on the client system:
# apt install nfs-common
To mount a remote folder from the command-line, open a terminal window and create a directory where you would like the remote shared folder to be mounted:
# mkdir /home/demo/tmp
Next enter the command to mount the remote folder using either the IP address or hostname of the remote NFS server, for example:
# mount -t nfs 192.168.1.115:/tmp /home/demo/tmp
The remote /tmp folder will then be mounted on the local system. Once mounted, the /home/demo/tmp folder will contain the remote folder and all its contents.
Options may also be specified when mounting a remote NFS filesystem. The following command, for example, mounts the same folder, but configures it to be read-only:
# mount...