Shell – Copy file from Windows shared folder to Unix

file-copysambashell

I am totally new to Unix. I am writting a script which will copy files from a Windows shared folder to Unix.

In Windows, when I type \\Servername.com\testfolder in Run command I am able to see testfolder. The directory testfolder is a shared folder through the whole network.

Now I want to copy some files from that testfolder to a Unix machine. Which command should I use? I know the IP Address of server but I don't know the username.

Best Answer

From your UNIX server you need to mount the Windows share using the procedure laid out in this link.

Basically you create a directory on your UNIX machine that is called the mount point. You then use the mount command to mount the Windows share on that mount point. Then when you go to the directory that you have created you see the files that are in the Windows share.

Related Question