mirror of
https://https.git.savannah.gnu.org/git/findutils.git
synced 2026-01-27 01:44:23 +00:00
[doc] Explain how locate's and find's default matching differ.
Example: The output of "locate foo" would include /home/james/foo/bar while the output of "find /home -name foo" would not.
This commit is contained in:
parent
0582f8057e
commit
9cbbb20bd5
@ -645,9 +645,9 @@ find @var{directories} -name @var{pattern}
|
||||
|
||||
where @var{directories} are the directories for which the file name
|
||||
databases contain information. The differences are that the
|
||||
@code{locate} information might be out of date, and that @code{locate}
|
||||
handles wildcards in the pattern slightly differently than @code{find}
|
||||
(@pxref{Shell Pattern Matching}).
|
||||
@code{locate} information might be out of date, and that by default
|
||||
@code{locate} matches wildcards against the whole file name (not just
|
||||
its base name) (@pxref{Shell Pattern Matching}).
|
||||
|
||||
The file name databases contain lists of files that were on the system
|
||||
when the databases were last updated. The system administrator can
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user