A common technology in the IT World is the use of NFS Media. It can be used as storage or sharing some files for example. NFS Stands for “Network File System” and is used as a file system protocol that allows you to share files over a network. When you mount an NFS Share on your system you can use it with your local file system.
In this blog, I will write how to mount an NFS Share on your Linux System.
How to install an NFS Client application?
The NFS Client application is not default installed on Linux. With a simple command, we can install the necessary binaries.
On RHEL (RedHat), CentOS, or Fedora servers you can use yum, like this:
1 |
sudo yum install nfs-utils |
On Debian / Ubuntu based servers you can use apt, like this:
1 |
sudo apt install nfs-common |
Create a new Linux directory where you mount your NFS Share.
With the command MKDIR you can create an empty Linux Directory, like this:
1 |
sudo mkdir /var/software |
Mount your NFS Share to your created directory.
1 |
sudo mount -t nfs soft.share.local:/SOFT /var/software |
If there is no output the NFS Share is successfully mounted.
Just to be sure check if it is mounted.
1 |
sudo mount |
Check if your NFS Share is listed.
Unmounting can be done with the following command.
1 |
sudo umount /var/software |