diff options
| author | hubertf <hubertf@NetBSD.org> | 2005-10-05 06:29:03 +0000 |
|---|---|---|
| committer | hubertf <hubertf@NetBSD.org> | 2005-10-05 06:29:03 +0000 |
| commit | e533c36a54bff90ff390d4d42614586429949d4b (patch) | |
| tree | 7e96d8515e5fbd73a3a75ec256f65407196383ca /usr.bin/locate | |
| parent | 0f632be9192ed1bad9db190d07413a52bbb59cf0 (diff) | |
Add locate.updatedb(8).
Discovered missing while sorting things out for BSDcertification.org.
Ran through wizd(8).
Diffstat (limited to 'usr.bin/locate')
| -rw-r--r-- | usr.bin/locate/locate/Makefile | 3 | ||||
| -rw-r--r-- | usr.bin/locate/locate/locate.1 | 7 | ||||
| -rw-r--r-- | usr.bin/locate/locate/locate.updatedb.8 | 69 |
3 files changed, 74 insertions, 5 deletions
diff --git a/usr.bin/locate/locate/Makefile b/usr.bin/locate/locate/Makefile index 9096779cb39..d8cb78815d5 100644 --- a/usr.bin/locate/locate/Makefile +++ b/usr.bin/locate/locate/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.9 2003/04/07 04:01:32 christos Exp $ +# $NetBSD: Makefile,v 1.10 2005/10/05 06:29:03 hubertf Exp $ # @(#)Makefile 8.1 (Berkeley) 6/6/93 PROG= locate +MAN= locate.1 locate.updatedb.8 FILES=updatedb.sh FILESNAME=locate.updatedb diff --git a/usr.bin/locate/locate/locate.1 b/usr.bin/locate/locate/locate.1 index d414f10431b..1722823e778 100644 --- a/usr.bin/locate/locate/locate.1 +++ b/usr.bin/locate/locate/locate.1 @@ -1,4 +1,4 @@ -.\" $NetBSD: locate.1,v 1.15 2004/04/19 00:32:44 lukem Exp $ +.\" $NetBSD: locate.1,v 1.16 2005/10/05 06:29:03 hubertf Exp $ .\" .\" Copyright (c) 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -79,14 +79,13 @@ encountered. .Bl -tag -width /usr/libexec/locate.updatedb -compact .It Pa /var/db/locate.database Default database -.It /usr/libexec/locate.updatedb -Script to update database. .El .Sh SEE ALSO .Xr find 1 , .Xr fnmatch 3 , .Xr locate.conf 5 , -.Xr weekly.conf 5 +.Xr weekly.conf 5 , +.Xr locate.updatedb 8 .Rs .%A Woods, James A. .%D 1983 diff --git a/usr.bin/locate/locate/locate.updatedb.8 b/usr.bin/locate/locate/locate.updatedb.8 new file mode 100644 index 00000000000..21774029cf4 --- /dev/null +++ b/usr.bin/locate/locate/locate.updatedb.8 @@ -0,0 +1,69 @@ +.\" $NetBSD: locate.updatedb.8,v 1.1 2005/10/05 06:29:03 hubertf Exp $ +.\" +.\" Copyright (c) 1999-2002 Hubert Feyrer. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. The name of the author may not be used to endorse or promote products +.\" derived from this software without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.Dd October 1, 2005 +.Dt LOCATE.UPDATEDB 8 +.Os +.Sh NAME +.Nm locate.updatedb +.Nd update locate database +.Sh SYNOPSIS +.Nm +.Sh DESCRIPTION +The +.Nm +program rebuilds the database used by the +.Xr locate 1 +program. +It is usually run once per week, see +.Xr weekly.conf 5 . +.Pp +The file systems and files (not) scanned can be configured in +.Xr locate.conf 5 . +.Sh FILES +.Bl -tag -width /usr/libexec/locate.updatedb -compact +.It Pa /var/db/locate.database +Default database +.El +.Sh SEE ALSO +.Xr find 1 , +.Xr locate 1 , +.Xr fnmatch 3 , +.Xr locate.conf 5 , +.Xr weekly.conf 5 +.Rs +.%A Woods, James A. +.%D 1983 +.%T "Finding Files Fast" +.%J ";login" +.%V 8:1 +.%P pp. 8-10 +.Re +.Sh HISTORY +The +.Nm +command appeared in +.Bx 4.4 . |
