Difference between revisions of "Find Tool"

From wiki.linuxonlinehelp.eu
Jump to navigation Jump to search
m
 
(No difference)

Latest revision as of 18:37, 11 May 2016

find multiple files/folders

$find /path -type d \( -name "foldername1" -o -name "foldername2" \ )

find and remove on the fly

find /path -name "filename-to-delete" -type f -exec rm -rf {} \;

find by size over 500MB and list them into Textfile

find / -size +500M -type f > /big-files.txt