←back to thread

177 points lnyan | 3 comments | | HN request time: 0.446s | source
1. 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 #
2. 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.
3. fwip ◴[] No.42200650[source]
pv also allows this, but you have to look up the process id manually, and pass it to the -d flag.