Running out of disk space on your Linux, macOS, BSD, or Unix-like OS? Or perhaps you're hitting the classic disk quota limits set by your sysadmin? Fear not. Run `du -sh * | sort -h` command to get a sorted list of your directory sizes so you can remove or compress unwanted files. Here is another useful shell alias:
```
alias ducks='du -cks -- * | sort -rn | head'
ducks
```

See cyberciti.biz/faq/how-do-i-fin for more info.

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/nixCraft/statuses/115821156778077281 on your instance and quote it. (Note that quoting is not supported in Mastodon.)