To access a NAS (Network Attached Storage) server using the NFS (Network File System) protocol under Linux or UNIX, you can use the mount command. This command allows you to mount a remote NFS file system on your local system, so that you can access the files on the remote server as if they were stored locally.
To mount an NFS file system, you need to know the server's address and the path to the file system on the server. You also need to have the appropriate permissions to access the file system. Once you have this information, you can use the mount command with the following syntax:
mount -t nfs [server-address]:[path-to-file-system] [mount-point]
For example, if the NAS server's address is 192.168.1.100 and the path to the file system you want to access is /mnt/nfs, you can mount it on your local system at /mnt/local by running the following command:
mount -t nfs 192.168.1.100:/mnt/nfs /mnt/local
This mounts the file system on 192.168.1.100 at /mnt/nfs at the local mount point /mnt/local. You can then access the files on the remote file system through the /mnt/local directory on your local system.
To unmount an NFS file system, use the umount command with the following syntax:
umount [mount-point]
For example, to unmount the file system mounted in the previous example, you would run:
umount /mnt/local
For more information on using the mount and umount commands, see the man pages for these commands or consult the documentation for your Linux or UNIX system.