3 ms·
I understand his point, but using 'dd' allows you to set a buffer size which can make cloning a bunch faster. It also has great progress reporting (status=progr
by GekkePrutser 4y ago
I understand his point, but using 'dd' allows you to set a buffer size which can make cloning a bunch faster. It also has great progress reporting (status=progress) which is really useful for the things dd is usually used for.
And even if you use it without it being needed, it's not a big deal. It doesn't add much overhead, if any.
- GekkePrutser 4y agoBy the way, on versions that don't support status=progress (like busybox and the BSD versions), you can periodically send a USR1 signal to get a progress update.
- trasz 4y agoNot sure about other BSDs, but FreeBSD and MacOS already support status=progress. Also ^T is much more convenient than SIGUSR1.
- GekkePrutser 4y agoI thought FreeBSD didn't but indeed it was Alpine (which uses busybox instead of gnu-utils) indeed. What I normally do is just do a 'watch -n 30 killall -USR1 dd' in another window which triggers regular progress updates :) That why I don't use ^T I use FreeBSD also but indeed it supports it now.
- messe 4y agoOn BSDs (and IIRC macOS) you want a SIGINFO not SIGUSR1, which can be sent by ^T.