]> git.sesse.net Git - plocate/blobdiff - plocate.1
Make updatedb understand DT_UNKNOWN.
[plocate] / plocate.1
index e58ad580f06fc34f2b5ee5dfa0e59e77cb711406..56ff0eb9c6dbe9e4dce193395e6533f10ae3aecb 100644 (file)
--- a/plocate.1
+++ b/plocate.1
@@ -49,7 +49,8 @@ All of this matches
 behavior.
 
 Like
-.BR mlocate(1),
+.BR mlocate (1),
+.B plocate
 shows all files visible to the calling user (by virtue of
 having read and execute permissions on all parent directories),
 and none that are not, by means of running with the setgid
@@ -57,6 +58,13 @@ bit set to access the index (which is built as root), but by
 testing visibility as the calling user.
 
 .SH OPTIONS
+.TP
+\fB\-b\fR, \fB\-\-basename\fR
+Match only against the file name portion of the path name,
+ie., the directory names will be excluded from the match
+(but still printed). This does not speed up the search,
+but can suppress uninteresting matches.
+
 .TP
 \fB\-c\fR, \fB\-\-count\fR
 Do not print each match. Instead, count them, and print out a total
@@ -64,9 +72,8 @@ number at the end.
 
 .TP
 \fB\-d\fR, \fB\-\-database\fR \fIDBPATH\fR
-Find matches in \fB/var/lib/mlocate/plocate.db\fR, instead of the given database.
-(
-.B plocate
+Find matches in the given database, instead of \fB/var/lib/plocate/plocate.db\fR.
+.RB ( plocate
 does not currently support multiple databases.)
 
 .TP
@@ -99,7 +106,7 @@ allowed to contain embedded newlines.
 \fB\-r\fR, \fB\-\-regexp\fR
 Patterns are taken to be POSIX basic regular expressions.
 See
-.BR regex(7)
+.BR regex (7)
 for more information. Note that this forces a linear scan
 through the entire database, which is slow.
 
@@ -110,6 +117,13 @@ be POSIX
 .I extended
 regular expressions.
 
+.TP
+\fB\-w\fR, \fB\-\-wholename\fR
+Match against the entire path name. This is the default,
+so unless \fB-b\fR is given first (see above), it will not do
+anything. This option thus exists only as compatibility with
+.BR mlocate (1).
+
 .TP
 .B \-\-help
 Print out usage information, then exit successfully.