Skip to content

Instantly share code, notes, and snippets.

@Kautenja
Kautenja / tar-progress.md
Last active June 18, 2025 19:38
one-liners for using tar with gzip and pv for a progress bar

Compress

tar cf - <files> -P | pv -s $(du -sb <files> | awk '{print $1}') | gzip > <some .tar.gz file>

where:

  • `` is the root-mounted (i.e. starts with /) path to the files