Skip to content

Instantly share code, notes, and snippets.

@luisgagocasas
Forked from stuart-warren/watch.sh
Created December 28, 2021 16:45
Show Gist options
  • Save luisgagocasas/94d5efa8f25a388c0d4ebf425a26b6fc to your computer and use it in GitHub Desktop.
Save luisgagocasas/94d5efa8f25a388c0d4ebf425a26b6fc 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