奖提问】CSDN论坛第1期专家问答开始 来极客头条,推荐你的博客 下载频道3月领任务~赚下载分!
问到一个简单的问题,ftp到远程服务器之后需要上传一个文件,但是我忘记了本地需要上传的文件名,因此需要查看本地目录。
解决方法:
1 lcd到本地目录
2 !ls查看本地目录的内容。
ftp> !ls1 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