使用mls命令可以将ftp的ls输出保存下来
ftp> mls ./ /root/ls.txt
output to local-file: /root/ls.txt?
227 Entering Passive Mode (178,79,144,174,179,86)
150 Here comes the directory listing.
226 Directory send OK.
也可以这样使用:
ftp> mls
(remote-files) ./
(local-file) /root/123123123
output to local-file: /root/123123123?
227 Entering Passive Mode (178,79,144,174,165,98)
150 Here comes the directory listing.
226 Directory send OK.
ftp>
转载于:https://blog.51cto.com/loopeelee/1607432