Find Top 10 Space Hogging Files (Directories) in Linux or Unix 🔍

du -hsx * | sort -rh | head -10

See https://www.cyberciti.biz/faq/how-do-i-find-the-largest-filesdirectories-on-a-linuxunixbsd-filesystem/ for more info.

How To Find Largest Top 10 Files and Directories On Linux / UNIX / BSD

Explains how to find out top 10 files and directories under Linux or Unix using sort and du command in human-readable format.

nixCraft
@nixCraft once I learned "du -skx * | sort -n" and I'm still using it regularly.
@nixCraft Number 1 is /
Number 2 is /dev

@nixCraft as a linux noob this is great to remind myself to clear out old unused repos and packages.

Sometimes you just go down that rabbit hole of customizing everything and trying out a bunch of stuff that you forget what you installed and what you're no longer using.

@nixCraft also, `ncdu` (prolly have to install it yourself but totally worth it.)
@keithpjolley @nixCraft absolutely seconding ncdu. Such a good tool
@nixCraft I usually just install and use ncdu. It is awesome 😊