

Time Access, Modification and creation of files - find all files that were created/modified/access in directory in 10 days # creation (c)Ĩ. Empty Files - find all empty directories in file system find / -type d -emptyħ. size threshold representing the range between more than (+) and less than (-) -user representing the file owner -or operator filters query for both regex matchesĦ. \( -name "test" -or -name "sample" \) -user root -size +1M -size -5M File Size, Ownership and OR Operator - Find all files with names 'sample' or 'test' under ownership of root user that greater than 1 Mega and less than 5 Mega.

type d means directory -name related to regular expression to any variation of route string -maxdepth making the finder focusing on 3 subtree depth and no more /depth1/depth2/depth3)ĥ. only and no more deeper) find app -name "*route*" -type d -maxdepth 3 Files examine all files, opened one by one, using an automatic way to find what kind of text file is, an Ansi, a Utf8, a Utf-16LE, or a Utf-16BE. Depth - Find all routes patterns directories in app directory no more than 3 dimensions ( app/././. type f means file -name related to regular expression to any variation of controller string and dash with. find /user/dev/app -name "*contoller-*\.js" -type f Regex and File Type - Find all javascript controllers variation names (using regex) javascript Files only in my app location. More Useful examples which can demonstrate the power of flag options and operators:ģ. name "package.json"Ģ.Find by Name and Type - find all node_modules directories from ALL file system (starting from root hierarchy ) sudo find / -name "node_modules" -type d

The Traditional Formula would be : find -flag ġ.Find by Name - Find all package.json from my current location subtree hierarchy.
