Linux Filesystem Cheat Sheet/Find largest files

List the biggest files under a directory.

Section: Space Usage

Find largest files

bash
bash
find . -type f -printf '%s %p
' | sort -nr | head -20

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Space Usage
Directory size summary
Show total size for a directory in human-readable format.
OpenIn sheetbashsame section
Top-level sizes under current directory
Show one-level deep size totals.
OpenIn sheetbashsame section
Filesystem free space
Display mounted filesystem capacity and usage.
OpenIn sheetbashsame section
Print working directory
Show the absolute path of the current directory.
Long listing with human sizes
Show detailed directory contents with human-readable sizes.
Create nested directories
Create a directory path including missing parents.