ftp查看本地目录文件

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

解决方法:

1 lcd到本地目录

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

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> 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

你可能感兴趣的:(服务器,File,Path)