Skip to content

Instantly share code, notes, and snippets.

@KavenTheriault
Last active April 10, 2021 13:01
Show Gist options
  • Save KavenTheriault/a9b5049b51a17321ec3c28f195edf13c to your computer and use it in GitHub Desktop.
Save KavenTheriault/a9b5049b51a17321ec3c28f195edf13c to your computer and use it in GitHub Desktop.
Sort files / folders by size
du -sh -- *  | sort -rh  # Files and directories, or
du -sh -- */ | sort -rh  # Directories only
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment