Skip to content

Instantly share code, notes, and snippets.

@antespi
Last active June 25, 2024 17:10
Show Gist options
  • Save antespi/6199760 to your computer and use it in GitHub Desktop.
Save antespi/6199760 to your computer and use it in GitHub Desktop.
List first level directories inside a directory, sorted by size. Useful when your disk is full and you are searching something to erase or move elsewhere.
du -k -d1 * | sort -nr | cut -f2 | xargs -d '\n' du -sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment