←back to thread

172 points lnyan | 1 comments | | HN request time: 0.211s | source
Show context
heinrich5991 ◴[] No.42197619[source]
There's also `progress` which works for tools mainly operating on a single file, but unlike `pv`, you don't have to start the tool differently. It'd e.g. work nicely for the `gzip` example. Just call `progress` on a different terminal while `gzip` is running.
replies(2): >>42199327 #>>42200650 #
1. dividuum ◴[] No.42199327[source]
I was curious on how that’s supposed to work, so I took a quick look: It scans /proc for known commands, then looks up file descriptor information via their fd/fdinfo directory to get size/seek positions and then shows a percentage of the largest file.