Skip to content

Instantly share code, notes, and snippets.

@decima
Last active May 1, 2024 16:26
Show Gist options
  • Save decima/52582ba8e09a8b73354e4ac34b6ed723 to your computer and use it in GitHub Desktop.
Save decima/52582ba8e09a8b73354e4ac34b6ed723 to your computer and use it in GitHub Desktop.
Small CLI Tool which lists biggest top 10 files/folders
#!/bin/sh
du -hsx ${1:-.}/* | sort -rh | head -10
@decima
Copy link
Author

decima commented Jun 3, 2019

how to install on linux/macos
you'll need curl

sudo curl  -L https://gist.githubusercontent.com/decima/52582ba8e09a8b73354e4ac34b6ed723/raw/15e4b9610f9b41b491930d09153359d6e66874ef/ducks.sh -o /usr/local/bin/ducks
sudo chmod +x /usr/local/bin/ducks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment