Ever wonder how to view the progress of cp, mv, dd, tar and other coreutils commands? 'progress' is there for you.

By norep | Byte-Sized Tech Tips | 10 Oct 2020


What is 'progress'?

Have you ever needed to move or copy a large file with the command line and had to sit there, staring at a blinking cursor while you have no idea how much longer it will take? Well 'progress' is the program you have been looking for.

Progress is a coreutils command that can display the current progress of several other coreutils commands such as cp, mv, dd, tar, cat, grep, sort, gzip, split and more.

If you have ever wondered exactly how far in to copying a big file you are, you can use progress to find out.

 

Installation

Progress does not come bundled with most linux distributions, so you will have to install it using your distributions package manager.

On debian and ubuntu-based distributions you install it through APT with this command:

sudo apt install progress -y

After the program is done installing, you can run it with

progress

 

 

Usage

You can see all the options for progress with

progress -h

progress Options screen

To simply check the progress of all running coreutils programs, you can run progress without any options.

However, to view the I/O throughput as well as the estimated time remaining, you would use

progress -w

To target a specific process, you can use progress -p, followed by the process ID

progress -p PID

If you do not have the PID of a process and just want to filter by the program name itself, you can use progress -c, followed by the process name

progress -c PROGRAM NAME HERE

 

Summary

Progress is a very useful tool to have on your system, just for those times where you have doubt if a copy or move command is frozen, you can easily check with progress. I'm pretty sure almost everyone who has used mv or cp has wished they included some kind of visual indicator of the progress of the transfer, but now with progress your wish has been granted.

 

 

How do you rate this article?

1



Byte-Sized Tech Tips
Byte-Sized Tech Tips

A blog about tech tutorials, tips and tricks, secrets and more!

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.