[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:
James Youngman 2024-05-17 09:45:46 +01:00
parent 0582f8057e
commit 9cbbb20bd5

View File

@ -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