3 ms·
There's no need to pipe via pv when you can just use dd's status=progress option.
by oxodorth 4y ago
There's no need to pipe via pv when you can just use dd's status=progress option.
- koolba 4y agoOr if you forget that, you send the dd process a USR1 signal and it will print the status. Though if you’re simply initializing from /dev/zero you’re probably better off with truncate to create a sparse file: https://man7.org/linux/man-pages/man1/truncate.1.html https://man7.org/linux/man-pages/man1/truncate.1.html Can’t beat a program that doesn’t even write the bytes.
- LukeShu 4y agoOr `fallocate` if you care about the space actually being allocated on disk (rather than the file being sparse).