From 4703463a7cdf1622dbb55cb079d778d1bde83e5b Mon Sep 17 00:00:00 2001 From: ImmortalPC Date: Fri, 18 Apr 2014 18:04:57 +0200 Subject: [PATCH] [DD] Watch the progress of `dd` with `pv` and `zenity` --- cheatsheets/dd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cheatsheets/dd b/cheatsheets/dd index b2a03c8..2db5aaa 100644 --- a/cheatsheets/dd +++ b/cheatsheets/dd @@ -9,6 +9,9 @@ dd if=/dev/zero of=/dev/null bs=4KB &; export dd_pid=`pgrep '^dd'`; while [[ -d # Watch the progress of 'dd' with `pv` and `dialog` (apt-get install pv dialog) (pv -n /dev/zero | dd of=/dev/null bs=128M conv=notrunc,noerror) 2>&1 | dialog --gauge "Running dd command (cloning), please wait..." 10 70 0 +# Watch the progress of 'dd' with `pv` and `zenity` (apt-get install pv zenity) +(pv -n /dev/zero | dd of=/dev/null bs=128M conv=notrunc,noerror) 2>&1 | zenity --title 'Running dd command (cloning), please wait...' --progress + # DD with "graphical" return dcfldd if=/dev/zero of=/dev/null bs=500K