ftp檢視本地目錄檔案
阿新 • • 發佈:2019-02-19
問到一個簡單的問題,ftp到遠端伺服器之後需要上傳一個檔案,但是我忘記了本地需要上傳的檔名,因此需要檢視本地目錄。
解決方法:
1 lcd到本地目錄
2 !ls檢視本地目錄的內容。
ftp> !ls1 test.txt
ftp> GUI test found problem of check subscription and following steps,defect 171875 already reported this problem,so reopenedftp> cd /test
550 /test: No such file or directory
ftp> lcd test
test: A file or directory in the path name does not exist.
ftp> lcd /test
Local directory now /test
ftp> !ls
1 test.txt
ftp> cd /test
550 /test: No such file or directory
ftp> lcd test
test: A file or directory in the path name does not exist.
ftp> lcd /test
Local directory now /test
ftp> !ls
1 test.txt
ftp> cd /test
550 /test: No such file or directory
ftp> lcd test
test: A file or directory in the path name does not exist.
ftp> lcd /test
Local directory now /test
ftp> !ls
1 test.txt
ftp> lcd test
test: A file or directory in the path name does not exist.
ftp> lcd /test
Local directory now /test
ftp> !ls
1 test.txt
ftp> !ls
1 test.txt
ftp> GUI test found problem of check subscription and following steps,defect 171875 already reported this problem,so reopenedftp> cd /test
550 /test: No such file or directory
ftp> lcd test
test: A file or directory in the path name does not exist.
ftp> lcd /test
Local directory now /test
ftp> !ls
1 test.txt
ftp> !ls
1 test.txt
ftp> GUI test found problem of check subscription and following steps,defect 171875 already reported this problem,so reopenedftp> cd /test
550 /test: No such file or directory
ftp> lcd test
test: A file or directory in the path name does not exist.
ftp> lcd /test
Local directory now /test
ftp> !ls
1 test.txt