Skip to content

Instantly share code, notes, and snippets.

@M1ke
Last active December 24, 2015 13:49
Show Gist options
  • Save M1ke/6808019 to your computer and use it in GitHub Desktop.
Save M1ke/6808019 to your computer and use it in GitHub Desktop.
Bash script to track progress of `dd` command.
#!/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