Section: Practical Recipes

Find the largest files in a tree

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

Useful for disk cleanup and packaging investigations.

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 Practical Recipes
Show most frequent error messages
Count and rank repeated lines in a log.
OpenIn sheetbashsame section
Show effective config lines only
Remove comments and blank lines from a config file.
OpenIn sheetbashsame section
Sum a CSV column
Compute the total of a numeric CSV field after skipping the header.
OpenIn sheetbashsame section
Extract unique IP addresses
Print unique IPs from a log file.
OpenIn sheetbashsame section
Replace text across many files safely
Search files first, then edit in place.
OpenIn sheetbashsame section
Split a file by size
Create 50 MB chunks.
OpenIn sheetbash1 tag match