3 ms·
So I suppose that the command pv < image.iso > /dev/sdb would actually need to buffer the complete file, before commencing to write to the device (and sho
by amelius 10y ago
So I suppose that the command
pv < image.iso > /dev/sdb
would actually need to buffer the complete file, before commencing to write to the device (and showing the progress), which would defeat the whole idea of showing progress.
- farhaven 10y agoIt wouldn't. It just won't be able to predict a file size.
- heinrich5991 10y agoIf `pv` doesn't know the input size, it doesn't show it. In your case, it can determine that its stdin is a file by looking at the `/proc/self/fd/0` symlink: $ ls -l /proc/self/fd/0 < /tmp/x lr-x------ 1 user users 64 <date> /proc/self/fd/0 -> /tmp/x
- stirner 10y agoFrom what I can tell, bash uses 4K buffers for pipelines.