我是一个新手用户试图弄清楚如何传输一个包含多个子目录的48 Gb目录(来自Mac终端命令行),这些子目录本身包含多个目录,...我不想确认使用'y/n'提示传输每个子目录.
使用mput *
或mget *
.当要求确认时,请键入a
而不是y
.这与回答y
一个命令的每个文件相同.
您还可以使用该prompt
命令更改提示行为.
您可以在手册页中找到更多信息.在终端类型:man ftp
顺便说一句,这不是一个编程问题.
ftp -i关闭提示.mget*获取所有文件.
Microsoft Windows [Version 6.1.7000] Copyright (c) 2006 Microsoft Corporation. All rights reserved. C:\so>ftp -i **hostname** Connected to hostname. 220 Microsoft FTP Service User (hostname:(none)): **username** 331 Password required for username. Password: 230 User username logged in. ftp> **cd logs** 250 CWD command successful. ftp> **ls** 200 PORT command successful. 150 Opening ASCII mode data connection for file list. meetmap.com 226 Transfer complete. ftp: 115 bytes received in 0.01Seconds 11.50Kbytes/sec. ftp> mget * 200 Type set to A. 200 PORT command successful. 150 Opening ASCII mode data connection for meetmap.com/ex090131.log (5490 bytes). 226 Transfer complete. ... (bunch more files) ftp> **quit** 221 C:\so>