How do I use bash to copy files to a Windows share?
feedback
|
migrated from stackoverflow.com Jan 17 at 9:03
This question came from our site for professional and enthusiast programmers.
|
Unless you're looking for a permanent setup (where Connect as follows:
Check the manual page here: http://linux.die.net/man/1/smbclient | |||||||
feedback
|
|
I assume that you use *NIX. So, basically, you have to mount the share with smbmount, then just use the cp command. Refer to this and CIFS utils | |||
|
feedback
|
|
To expand a little on @onur's point - as long as you have a filesystem mounted, (almost) all normal file utilities should be usable, as at that point it just appears to *nix as a filesystem. Samba allows you to mount windows shares using smbmount, which comes as standard with many distro's and as an option with most others. Commands such as cp, mv etc should work just fine. | |||
|
feedback
|