From ff5e872eac7ec8946bf07aa1802a5ca6ce0d6f64 Mon Sep 17 00:00:00 2001 From: Marcel Bischoff Date: Wed, 16 Nov 2016 16:27:18 +0100 Subject: [PATCH] Add Copy Large File with Progress --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index a8d7973..e1c263d 100644 --- a/README.md +++ b/README.md @@ -1219,6 +1219,12 @@ osascript /path/to/script.scpt diff -qr /path/to/folder1 /path/to/folder2 ``` +#### Copy Large File with Progress +Make sure you have `pv` installed and replace `/dev/rdisk2` with the appropriate write device or file. +```bash +FILE=/path/to/file.iso pv -s $(du -h $FILE | awk '/.*/ {print $1}') $FILE | sudo dd of=/dev/rdisk2 bs=1m +``` + #### Restore Sane Shell In case your shell session went insane (some script or application turned it into a garbled mess). ```bash