Copy files from windows to linux

Having the samba client mounted on the linux machine is very easy.

You have to mount a shared folder as part of the file system on the windows machine, example:
“c:my_folder” where the files you want to pass to the linux machine are located.

Then on the linux machine, you mount a network drive with the samba client, which would be something like this:
mount -t smbfs -o username=windowsusername,password=passwindows
//windows_machine_name/my_folder /mnt/sm1

This command should be written in a single line.
With this you would already have a network folder that would work as in windows. You would only have to copy the files in the folder and that’s it.

If you don’t want to type the command to mount the directory every time you boot, set the /etc/fstab file to mount automatically at system boot.

See also  Data types, variables, input and output
Loading Facebook Comments ...
Loading Disqus Comments ...