Appearance
tar 本身并不提供查看进度的功能,但是我们可以通过监控文件的 io 来估测压缩/解压的进度.
tar
这需要用到 ps 指令.
ps
pv $tarfile | tar -xf -
在这里,tar 从 pipe 读取文件,pv 监控着 pipe 的流量.
pv