This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(8)
使用
mput *
或mget *
。 当要求确认时,输入a
而不是y
。 这与为一个命令的每个文件回答y
相同。您还可以使用
prompt
命令更改提示行为。您将在手册页中找到更多信息。 在终端中输入:
man ftp
Use
mput *
ormget *
. When asked for confirmation, typea
instead ofy
. This is the same as answeringy
for every single file for one command.You can also change the prompting behavior using the
prompt
command.You will find more information in the man page. In Terminal type:
man ftp
ftp -i 关闭提示。 mget * 获取所有文件。
ftp -i turns off prompts. mget * gets all the files.
我相信问题是 FTP 目录而不是文件; 据我所知(我根本不是专家)你不能使用 mget/mput save 来 FTP 目录使用 tar 文件(在 unix ie 下)
I believe the question was to FTP Directory and not Files; and as far aswhat I know(am not at all a expert) you cant FTP directories using mget/mput save for using tar files(under unix ie.)
就我个人而言,我确实喜欢 wget 和 wput
Personally I do like wget and wput
您还可以使用 scp 从 shell 提示符传输整个目录。 例如:
MyMachine$ scp -r FromMachine:[目录路径] [目标路径]
这会将整个目录及其内容复制到 MyMachine 上的目标路径。 请参阅“man scp”以获取更多信息。
恕我直言,用户应该使用 sftp 和 ssh,因为 FTP 以明文形式发送密码。
You can also use scp to transfer entire directories from the shell prompt. For example:
MyMachine$ scp -r FromMachine:[Directory Path] [Destination Path]
This copies the entire directory and its contents to the destination path on MyMachine. Please see "man scp" for more information.
Users IMHO should be using sftp and ssh as FTP sends passwords as clear text.
最快、最有效的方法是 tar 压缩它,然后在另一端通过 sftp 解压它。
步骤如下:
The fastest and most efficient is to tar compress it and sftp and untar it on the other end.
Here are the steps :
ncftp 应该能够递归获取文件。
或者,使用任何无限图形拖放 ftp 客户端。
ncftp should to be able to recursively get files.
Alternatively, use any of infinite graphical drag and drop ftp clients.
这对我来说效果很好:
$
ncftp gnu.ftp.org
$
ncftp /old-gnu/Manuals > 获取-R -T sharutils
This worked quite well for me:
$
ncftp gnu.ftp.org
$
ncftp /old-gnu/Manuals > get -R -T sharutils