10 ms·
I was thinking it was SIGINFO, but this reminded me of the SIGUSR1 trick to get the current status of a running dd process- $ dd if=/dev/zero of=/dev/null& p
by kylek 7y ago
I was thinking it was SIGINFO, but this reminded me of the SIGUSR1 trick to get the current status of a running dd process-
$ dd if=/dev/zero of=/dev/null& pid=$!
$ kill -USR1 $pid; sleep 1; kill $pid
18335302+0 records in 18335302+0 records out 9387674624 bytes (9.4 GB) copied, 34.6279 seconds, 271 MB/s
- dntbnmpls 7y agoThat's interesting. I always wonder how people monitored the progress of dd before it added the status option. Now you can use the status option to get a realtime update of the progress. dd if=/dev/urandom of=/dev/null status=progress
- masklinn 7y agoIt is siginfo on BSDs, sigusr1 is the fallback.