Sunday, October 7, 2012

How to monitor file transfer progress in FTP


When you are transferring a large file using the ftp command line tool, you are not really sure if the transfer is going on or not. The prompt take hours to return with success or failure message.



A very simple way to monitor the transfer is to use hash command in the FTP prompt.



Example:



$ ftp <host>

user: <user name>

password: <pass>

ftp> hash

Hash mark printing on (1024 bytes/hash mark).

ftp> get a_very_large_file

200 PORT command okay.

150 Opening data connection for a_very_large_file

########################################

226 Transfer complete.



No comments:

Post a Comment