先 (s)ftp <ftp_address>, 登入之後會看到 ftp>
=========== 以下為指令 =============
open <ftp_address> : open link to <ftp_address>
user <userID> : specify login user name
//
// 以上兩個指令如果已經登入就不用再下了
cd <dirName> : change directory to the <dirName> of the ftp machine
ls : list the content of the current directory of the
ftp machine
lcd <dirName> : change the directory of the local machine
//
// lls command not found? 就開另外一個 local window ls 一下吧!
get <fileName> : get the <fileName> from ftp machine to local
put <fileName> : put the <fileName> from local to ftp machine
prompt : toggle the interactive mode
// sftp 免
mget <fileName*> : get multiple files (can have * sign)
mput <fileName*> : get multiple files (can have * sign)
//
// 以上兩個指令最好先下 prompt, 免得一直被問
ascii : change the transfer type to ASCII
bin : change the transfer type to BINARY
//
// 不一定要用, 通常會自動偵測, 而且 sftp 應該是沒有這兩個指令
bye : 就掰囉!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.224.43.28
※ 編輯: ric2k1 來自: 61.224.43.28 (10/05 23:31)
※ 編輯: ric2k1 來自: 61.224.43.28 (10/05 23:32)
1F:推 bnsblue:直接連線 sftp [-oPort=<port_num>] [user@]host 10/05 23:35
2F:→ bnsblue:port一定要比host先specify 10/05 23:35