Skip to content

Instantly share code, notes, and snippets.

@brandonmburroughs
Created April 30, 2017 23:50
Show Gist options
  • Save brandonmburroughs/d088ad9474f606b594eb6172394cb9f6 to your computer and use it in GitHub Desktop.
Save brandonmburroughs/d088ad9474f606b594eb6172394cb9f6 to your computer and use it in GitHub Desktop.
Bash one liner to monitor copying a large file/folder from one location to another
watch -n1 'echo $(du -s /path/to/original/file | cut -f 1)/$(du -s /path/to/copy/file | cut -f 1)*100 | bc -l'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment