Skip to content

How to Find What's Using Disk Space in Linux

Summary

This is a quick article that lists commands that can be used to find what's using all the free disk space in a Linux environment.

Commands

List directories sorted by their size:

find / -mount -type d -exec du -s "{}" \; | sort -n

List files sorted by their size:

find / -mount -printf "%k\t%p\n" | sort -n

Reference