Access NAS from Raspberry Pi

I have a NAS, and it can be easily access from Raspberry Pi by using the following script:

  • Create a NAS folder
mkdir nas
  • mount NAS to the local nas folder
sudo mount -t cifs //lenovoez/documents /home/pi/nas/