I ran gzip on an 80Gb file, it's processing, but who knows how much it has done yet, and when it will end? I wish gzip had a progressbar. Or MySQL. Or…
Ok. Now every program that reads a file sequentially can have a progressbar:
https://gitlab.com/spanezz/fdprogress
fdprogress
Print progress indicators for programs that read files sequentially.
fdprogress monitors file descriptor offsets and prints progressbars comparing them to file sizes.
Pattern can be any glob expression.
usage: fdprogress [-h] [--verbose] [--debug] [--pid PID] [pattern] show progress from file descriptor offsets positional arguments: pattern file name to monitor optional arguments: -h, --help show this help message and exit --verbose, -v verbose output --debug debug output --pid PID, -p PID PID of process to monitor
pv
pv has a --watchfd
option that does
most of what fdprogress is trying to do: use that instead.
fivi
fivi also exists, with specific features to show progressbars for filter commands.