Taken from Linux Commando
Last active
December 24, 2015 13:49
-
-
Save M1ke/6808019 to your computer and use it in GitHub Desktop.
Bash script to track progress of `dd` command.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Prints progress of dd command every 10 seconds, in the terminal dd is running in | |
# Uses pidof to get pid, won't work if multiple dd processes are ongoing | |
# Requires sudo; if not included presents problem of script not running from ~/bash | |
sudo watch -n 10 kill -USR1 `pidof dd` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment