我要复制到Linux计算机上的Windows计算机上有一些文件。 在Linux机器上,我使用smbclient命令执行此操作。
我的/etc/samba/smb.conf文件是(我在获取server signing = auto
时添加了cli_negprot: SMB signing is mandatory and the server doesn't support it.
):
[global]
workgroup = MYGROUP
netbios name = APPLICATIONSERVER
server string = Samba Server Version %v
username map = /etc/samba/smbusers
log file = /var/log/samba/log.%m
max log size = 50
# client signing = required
server signing = auto
idmap config * : backend = tdb
cups options = raw
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
print ok = Yes
browseable = No
命令是:
date ; smbclient //<IP>/<Shared Folder> -U username%password -c 'lcd /tmp; cd sharedFolder; get myFile.tar' -d 10 ; date
我第一次运行该命令,大约需要一分钟时间才能完成。 第二次运行该命令时,只花了1秒钟。
为什么在随后的尝试中文件复制如此之快?