rwxr--r--
/dev/blog

Bez Hermoso, Software Engineer @ Square

If you have a file of ever growing size i.e. an in-progress download or compressed tar file, use this command:

 
$ watch du -h /path/to/file.tar.gz

This will show file size updates every 2 seconds. You can adjust the refresh frequency by passing in -n <SECONDS> to the watch command i.e. watch -n 10 du -h /path/to/file.tar.gz

comments powered by Disqus