Linux – Unzip archive with one line of output

command-line-interfacelinuxshell

I wonder if there is a way to unzip a file via "unzip" in the shell while having only the current file outputted instead of total silence "-q" or a ever growing list that slows down the process esp. via ssh and fills your console window.

Or is there at least another way to see progress without outputting every single path?

Best Answer

You could use pv in line mode:

unzip archive.zip | pv -l >/dev/null

Gives you an updating progress line looking like this:

 203 0:00:00 [3.93k/s] [ <=>                                                   ]