window11 上传文件至 Linux时,出现文件名带空格的情况,容易报错No such file or directory
避免报错的方式加“”把路径括起来
绝对路径: scp -P xx "C:\xx\xx\a b.txt" root@ip:/root
cd到文件所在目录: scp -P xx "a b.txt" root@ip:/root
window11 上传文件至 Linux时,出现文件名带空格的情况,容易报错No such file or directory
避免报错的方式加“”把路径括起来
绝对路径: scp -P xx "C:\xx\xx\a b.txt" root@ip:/root
cd到文件所在目录: scp -P xx "a b.txt" root@ip:/root