0
我下載了需要遷移到Ubuntu的swig的最新版本。我希望有人能幫助確定我的語法的哪一部分是不正確的。我已經嘗試了一些變體,但我似乎無法完成它的編寫。這是scp下載的文件到Ubuntu的正確語法?
我已經試過
scp swig-3.0.2 [email protected]: swig-3.0.2
swig-3.0.2 is a directory (not copied)
scp swig-3.0.2 [email protected]: /home/drubio/swig-3.0.2
No such file or directory
我已經試過落實的方向,我已經在askubuntu.com發現這裏轉載:
# copy a file from local machine to server1.com
[email protected]# scp ./somefile.txt [email protected]:/home/user2
# copy a file from server1.com to server2.com
[email protected]# ssh [email protected]
[email protected]# scp ./somefile.txt [email protected]:/home/user2
[email protected]# logout
# copy a file from server2.com to server1.com
[email protected]# ssh [email protected]
[email protected]# ls
somefile.txt otherfile.txt
[email protected]# scp ./otherfile.txt [email protected]:/home/user1
[email protected]# logout
# can't copy a file TO local-machine because it's not accessible from internet
所有我想要做的就是複製下載的swig-3.03位於我本地計算機桌面上的Ubuntu上。我檢查了我所在的本地計算機,並驗證了自己位於桌面目錄中。我的用戶名是正確的,路徑是正確的。我假設這個錯誤是目的地。我認爲這是錯誤的嗎?
這工作就像一個魅力。我也意識到我正在複製一個目錄並忘記了-r標誌。謝謝@jml。 –