Locating large files (> 100 MB) in /home/ for 'cleaning'

Find has it's own -delete option so

find /home -type f -size +100M -delete

should do what you want. Just be careful about where you put the -delete option

Warnings: Don’t forget that the find command line is evaluated as an expression, so putting -delete first will make find try to delete everything below the starting points you specified.

If you want to test this before using it then you need to add -depth as -delete implies it.

find /home -type f -size +100M -depth

ncdu is a nice interactive tool to find big files or directories. It will scan a given directory and show a simple ncurses interface to present sizes of directories. It also has a shortcut to delete a file/directory.


Just find: find /home -type f -size +100M

find and remove find /home -type f -size +100M -print0 |xargs -0 rm


du /home | awk '$1 > 1234 { print }'

It searches not for large files but for large folders. In case of running out of file space I try to look both for large files and large folders to identify problematic areas.