How to copy a file from unix machine to windows machine, from commandline.
|
feedback
|
migrated from stackoverflow.com Sep 27 '11 at 21:33
This question came from our site for professional and enthusiast programmers.
|
If your windows machine is on the same network, you can share your unix filesystem with smb and mount it on the windows machine, then use "cp" to transfer the file. You can find information about smb for ubuntu here https://help.ubuntu.com/10.04/serverguide/C/samba-fileserver.html | |||
|
feedback
|
|
Assuming that, the Windows box have a shared folder. You can use smbclient command. Which provide a FTP-like command line interface over the SMB protocol. This post provide a ready to use example, which looks a perfect answer. If you need to copy files to or from a windows server from a unix server, you can use an utility from the Samba software suite called smbclient.
| ||||
|
feedback
|
|
You can use PSFTP to download/upload files to / from Unix server from your Windows machine. You may see this guide. | |||
|
feedback
|