2017-03-23 35 views

回答

0

基本語法

scp source_file_name [email protected]_host:destination_folder 

在你的情況

~/setup : is the source [~ : root directory and setup is a folder which you want to copy to a destination] 

[email protected]: is the destination 
~/: location in a destination [in this case which is a root directory] 

要了解更多打下面的鏈接

http://www.hypexr.org/linux_scp_help.php

0

這個問題在unix.stackexchange適合更好。

這裏,在您的home目錄(在您執行此命令的機器中)中的名爲setup的文件是源,並且機器上的home目錄是[email protected]是目標。這是一個命令複製,它不會move(你會保留原來的副本),所以如果這是你想要的,那麼你正確的scp命令。

+0

但我執行此查詢從[email protected]主目錄複製到我的主目錄 – user7750849

+0

@ user7750849請參閱http://man7.org/linux/man-pages/man1/scp.1.html和https:// linux.die.net/man/1/scp。你應該做的第一件事是執行'man scp'或'scp help'。 – 0xc0de