find Unix Utility
(Redirected from find Utility)
Jump to navigation
Jump to search
A find Unix Utility is a Unix utility that is a file system search utility.
- Example(s):
find . -type d -maxdepth 1 ! -type d -name '[!.]*' -print
; find all directories in the current working directory.find /var/log -name '*.csv' -exec grep --with-filename 'str ing' {} \;
find /var/log \( -name '*.csv' -o -name '*.tsv' \) -exec grep --with-filename 'str ing' {} \;
- Counter-Example(s):
- See: File Operation.
References
2013
- http://en.wikipedia.org/wiki/Find
- In Unix-like and some other operating systems,
find
is a command-line utility that searches through one or more directory trees of a file system, locates files based on some user-specified criteria and applies a user-specified action on each matched file. The possible search criteria include a pattern to match against the file name or a time range to match against the modification time or access time of the file. By default,find
returns a list of all files below the current working directory.The related
locate
programs use a database of indexed files obtained throughfind
(updated at regular intervals, typically bycron
job) to provide a faster method of searching the entire filesystem for files by name.
- In Unix-like and some other operating systems,