Skip to content

Instantly share code, notes, and snippets.

@louisdx
Created April 12, 2011 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save louisdx/915900 to your computer and use it in GitHub Desktop.
Save louisdx/915900 to your computer and use it in GitHub Desktop.
Progress dd
#/bin/sh
# Credits for the idea: http://linuxcommando.blogspot.com/2008/06/show-progress-during-dd-copy.html
# Written by Louis Delacroix
dd if=/dev/zero of=/dev/null bs=512 count=3000000 &
PID=$!
echo "The dd process runs with PID is $PID. Watching..."
watch -n 1 --no-title --errexit kill -USR1 $PID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment