ftp查看本地目录文件

来源:互联网 发布:管家婆软件试用 编辑:程序博客网 时间:2024/06/05 10:36

奖提问】CSDN论坛第1期专家问答开始       来极客头条,推荐你的博客       下载频道3月领任务~赚下载分!  

ftp查看本地目录文件       

        分类:            工作相关1574人阅读评论(1)收藏举报
filepath服务器

问到一个简单的问题,ftp到远程服务器之后需要上传一个文件,但是我忘记了本地需要上传的文件名,因此需要查看本地目录。

解决方法:

1 lcd到本地目录

2 !ls查看本地目录的内容。

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