Skip to content

Instantly share code, notes, and snippets.

@mikecmpbll
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikecmpbll/02cd008d092c3ec33954 to your computer and use it in GitHub Desktop.
Save mikecmpbll/02cd008d092c3ec33954 to your computer and use it in GitHub Desktop.
du | awk '{ if ($1>1000*1024) { print $0 } }'
# prints out a whole bunch of directories bigger than 1000mb
du --max-depth=3 | awk '{ if ($1>1000*1024) { print $0 } }'
# just hangs with no output (i waited 5 mins) whereas ..
du --max-depth=3
# immediately outputs directories which i can see are bigger than 1000mb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment