Difference between revisions 507789 and 507790 on knwiki

{{See Wiktionary|a computer utility}}
{{lowercase|title=find}} 
{{For|the EP by Hidden in Plain View|Find (EP)}}

The <code>'''find'''</code> program is a [[search utility]], mostly found on [[Unix-like]] platforms. It searches through one or more [[directory (file systems)|directory]] [[tree (computing)|tree(s)]] of a [[filesystem]], locating [[Computer file|file]]s based on some user-specified criteria. By default, <code>find</code> returns all files b(contracted; show full)

===Search several directories===
 find local /tmp -name mydir -type d -print
This searches for directories named ''mydir'' in the ''local'' subdirectory of the current working directory and the ''/tmp'' directory.

===Ignore errors===
If you're doing this as a user other than root, you might want to ignore permission denied (and any other) errors
 with this:.  Since errors are printed to [[stderr]], they can be suppressed by redirecting the output to /dev/null.  The following example shows how to do this in the bash shell: 
 find / -name "myfile" -type f -print 2>/dev/null

===Find any one of differently named files===
 find . ( -name "*jsp" -or -name "*java" ) -type f -ls

(contracted; show full)[[Category:Searching]]

[[de:Find]]
[[es:Find]]
[[ja:find]]
[[pl:Find]]
[[pt:Find]]
[[ru:Find]]