scp遇到路径中有空格
生活随笔
收集整理的這篇文章主要介紹了
scp遇到路径中有空格
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
sudo scp?root@1.1.1.1:/test/soft/123/Microsoft?SQL Server 2000.iso .??????錯誤!
sudo scp?root@1.1.1.1:"/test/soft/123/Microsoft?SQL Server 2000.iso" .?????錯誤!
sudo scp?root@1.1.1.1:/test/soft/123/Microsoft\?SQL\ Server\ 2000.iso" .?????錯誤!
sudo scp??SQL\ Server\ 2000.iso" .?????錯誤!
?
正確方法是:
sudo scp?
root@1.1.1.1:"/test/soft/123/Microsoft\\?SQL\\ Server\\ 2000.iso" .也就是說
1、需要用括號(是雙引號)把路徑擴起來。
2、需要在空格前加兩個\
轉載于:https://www.cnblogs.com/mafeng/p/9212220.html
總結
以上是生活随笔為你收集整理的scp遇到路径中有空格的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 求一个好听的舞蹈名字
- 下一篇: 真猴子价格多少钱