CentOS 7 - How to copy files and display the progress and speed of the transfer?

Following article described how to copy files and display the progress, speed of the transfer and also time remaining, while using CentOS Linux. Simply run following command: rsync -ah --progress...

Following article described how to copy files and display the progress, speed of the transfer and also time remaining, while using CentOS Linux. Simply run following command:

rsync -ah --progress source-file destination

EXAMPLE:

Let's say I needed to copy MySQL DB file:

content.MYD

to a new DATA location at:

/var/lib/mysql/usenet

I'll simply run:

rsync -ah --progress content.MYD /var/lib/mysql/usenet/content.MYD

And this is what the transfer would look like:

2015-11-28_17-35-25

As you can see it shows the file size, percentage of the file transferred, speed of the transfer and also time remaining.

BTW. In case you don't have the RSYNC installed, just run:

yum -y install rsync