Thefindcommand is used to locate files on a Unix or Linux system.findwill search any set of directories you specify for files that match the supplied_search criteria_. You can search for files by name, owner, group, type, permissions, date, and other criteria. The search is recursive in that it will search all subdirectories too. The syntax looks like this:
find where-to-look criteria what-to-do
All arguments tofindare optional, and there are defaults for all parts. (This may depend on which version offindis used. Here we discuss the freely available Gnu version offind, which is the version available onYborStudent.) For example,where-to-look_defaults to.(that is, the current working directory),criteria_defaults to none (that is, select all files), and_what-to-do(known as thefind_action) defaults to‑print(that is, display the names of found files to standard output). Technically, the criteria and actions are all known asfind_primaries_.
For example: