LFTP:如何知道传输文件所花费的时间? [英] LFTP: How to know time taken in transferring a file?

查看:92
本文介绍了LFTP:如何知道传输文件所花费的时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用LFTP进行文件传输.文件传输成功,但是在文件传输成功结束时,仅显示传输的字节数.我还需要知道传输文件所花费的时间.

I am using LFTP for file transfer. The file transfer is successful but at the end of a successful file transfer, only the number of bytes transferred is displayed. I need to know the time taken in transferring the file, as well.

我正在使用LFTP,因为我需要在一个命令中同时提供用户名,密码和所需的ftp命令. (lftp -u username,password -e "your command;quit" ftp.site.com).因此,使用其他FTP守护程序可能不是一种选择.

I am using LFTP because I need to provide the username, password and the required ftp command all in a single command. (lftp -u username,password -e "your command;quit" ftp.site.com). Therefore, using some other FTP daemon is probably not an option.

是否可以使用LFTP显示传输时间?

Is it possible to display transfer time using LFTP?

谢谢

推荐答案

使用time命令.在大多数命令之前使用它,它将使您节省执行该命令所花费的时间.

Use the time command. Use it before most any command and it will give you a run down of the time it takes to complete that command.

time lftp -u username,password -e "your command;quit" ftp.site.com

输出将如下所示:

real    0m2.963s
user    0m0.000s
sys     0m0.012s

这篇关于LFTP:如何知道传输文件所花费的时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆