Search

Examples of find command:

#find all files which is starts with filename and has extension txt
find -iname FILENAME*.txt

#Find all files which is has dir in name and has extension jpg
#There must be * before dir name or full path
find -path "*dir*/*jpg"

#Find in Pictures directory every jpg file which weight is lower than 100k and which is in folder *own
find ~/Pictures -path "*own/*.jpg" -size -100k

#Find and delete all files with extension *orig*
find . -name '*.orig' -delete