Progress Monitor On a Linux Console

I sometimes want to monitor the progress of a copy or backup job on the console. The trick to do that is as follows:

while true; do something…; sleep 10; clear; done;


[tom@ns2 ~]# while true; do df- h /media/usr; sleep 10; clear; done;


What this is, it display the size of /usr partition, the used space, available space and the progress of the job in percentage. The “clear” command will make sure all these informations are shown on a single line by clearing the screen. The clear command is very cool 😉

It hope someone find this useful 

Posted in Linux, Rsync and tagged , by with comments disabled.