shellspells beta


find [-H] [-L] [-P] [-D debugopts] [-Olevel] [path...] [expression]

find searches the directory tree based on the given rules.

A pretty powerful utility, find has all sorts of applications. As well as finding files it can also perform actions on matching elements.


Find all large files

$ find -size +100M -ls

Find all files modified in the last 2 days

$ find -mtime 2 -ls

Delete matching files

$ find -name core -type f -exec rm {} \; -print

Same as above, but using xargs

$ find -name core -type f | xargs rm