xnett.org

/var/log/xnett/notes/quick-command-find-large-files

2026-09-07 23:54 [cmd]

Quick command: find the largest files under a path

bash
du -ahx . | sort -rh | head -n 20

The -x flag matters more than it looks — without it, du will happily walk into other mounted filesystems and give you a misleading picture of what's actually consuming space on the volume you care about.

# EOF

Quick command: find the largest files under a path | Xnett.org