0

我需要从 Linux 连接到 Windows 以复制一些文件。我的 Windows 目录如下所示: \Server\Pucblic\dir\offline\etc 我试过: smbclient -U user%pw \Server\Public\dir\offline\etc 还有

smbclient -U user%pw \\Server\Public --directory dir\offline\etc

没有任何效果。

但是当我尝试连接到 \Server\Public - 那是工作......

4

1 回答 1

0

试试这些命令

注意:尝试使用正斜杠,如下所示。

smbclient -U user%pw //Server/Public --directory dir/offline/etc

如果要从单个命令行复制文件,请尝试:

smbclient -U user%pw //Server/Public --directory dir/offline/etc -c 'put "yourfilename"'
于 2017-01-10T05:53:10.660 回答