Skip to content

Instantly share code, notes, and snippets.

@stuart-warren
Created October 20, 2017 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save stuart-warren/67139f9e410307de30fb0699d375e628 to your computer and use it in GitHub Desktop.
Save stuart-warren/67139f9e410307de30fb0699d375e628 to your computer and use it in GitHub Desktop.
Watch a directory of files for changes
# watch the current directory for changes to files
# order the files by size and output the files in 3 columns
# highlight changes between outputs
watch -d 'du -sh * | sort -hr | pr -3 -t'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment