Linux command line display download file progress FTP or SCP

Source: Internet
Author: User
Tags remote ftp server

Background: The use of FTP to get large files, the phenomenon of suspended animation, do not know whether the file is still transmitted

1, log into the remote FTP server, and enter the user, password
[Email protected] list]# FTP 19.129.81.5
Connected to 19.129.81.5.
(VsFTPd 2.2.2)
530 Login with USER and PASS.
530 Login with USER and PASS.
Kerberos_v4 rejected as an authentication type
Name (19.129.81.5:root): Gov
331 Specify the password.
Password:
Successful Login.
Remote system type is UNIX.
Using binary mode to transfer files.

2, in order to view the progress of download files, especially when downloading larger files, waiting for a long time, do not know whether the network has been disconnected, after viewing, you can use the "Hash"Command
Show the progress of the download, each output a "#" for the BYTES=1KB
Operation is as follows
Ftp> Hash
Hash mark Printing on (1024x768 bytes/hash mark).

3. Download the file
Ftp> Get Gbe_2015_01.txt/home/data/nanhaiwater/list/gbe_2015_01.txt
Local:/home/data/nanhaiwater/list/gbe_2015_01.txt remote:gbe_2015_01.txt
227 Entering Passive Mode (19,129,81,5,23,132)
Opening BINARY mode data connection for Gbe_2015_01.txt (10385000 bytes).
##########################################################################################

4, if the file in the transmission process, there is an interruption, you can use the "reget" command to continue to pass
Ftp> Reget Gbe_2015_01.txt/home/data/nanhaiwater/list/gbe_2015_01.txt

5, of course, can also use "SCP"Command to perform a file download, which can display percentages, size, and download speed, recommended use
The format example is as follows:
SCP [Email Protected]://home/myftp/list/1212.txt/home/data//list/1212.txt

Linux command line display download file progress FTP or SCP

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.