Hum... I did a search for updatedb.conf and found nothing, on the other hand I found this file which I think probably does the same thing of the file you talked.
So in the PRUNEPATHS part I don't' see my home (which I suppose it's mounted because I'm the only user of this Mac and it is my home folder).
PS: How do I search for a word while reading a man page of locate?
Hi lads me again
trying to get a wee bit fancy with my scripting
anyway it dosn't seem to want to run (strange as it may seem)
I encrypted a file renamed it and wrote another file that unencrypts it
(it contains passwords) (and b4 anyone says I am doing this for my own reasons)
In a... (3 Replies)
Hi,
I am aware of the command locate/slocate. But when I try to search the file which is located in /tmp. Its not able to get it. I tried by updating the database also with the command updatedb.
Is there any consern that the command 'locate' dont check /tmp???
And I knew that locate is the... (5 Replies)
Hello,
I want to search for a file/directory named "abc" which is located anywhere in the given unix system.
I am using the command :-
But the problem is that this is giving me all combinations of files with have 'abc' in their name. But can I know the option to be used to get the location... (5 Replies)
Hi all
i am using solaris 10, i am creating user with
useradd -d/home/user -m -s /bin/sh user
user is created with in the following path
/export/home/user (auto mount)
i need the user to be created like this
(/home as default home directory )
useradd -d /home/user -m -s /bin/sh... (2 Replies)
Previously i worked on linux now i am working on HP-UX and solaris ...
I am not able to use Locate command(command not found) in HP-Ux and solaris.
Suggest me some options to use locate (6 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
Ok, Im back with another small problem. I created a script (the one posted in the last thread). After some help from some members here all is good. The problem is I made it... (4 Replies)
Hello to all,
Can I use the "locate" command on AIX 5.3 like on Linux.
If yes what packages should I install and where can I find them.
Thanks,
Enid (9 Replies)
:(
---------- Post updated at 01:51 AM ---------- Previous update was at 01:50 AM ----------
Not working
---------- Post updated at 02:04 AM ---------- Previous update was at 01:51 AM ----------
cp -p /home/* home/exp/*.`date`
i am using this (4 Replies)
HI when ever i type the locate command it is saying like below
warning: locate: warning: database /var/lib/slocate/slocate.db' is more than 8 days old
i am using Linux .
version is as follows...
$ uname -a
Linux abc.abc.com 2.6.9-89.35.1.ELhugemem #1 SMP Tue Jan 4... (3 Replies)
Discussion started by: ptappeta
3 Replies
LEARN ABOUT NETBSD
locate
LOCATE(1) BSD General Commands Manual LOCATE(1)NAME
locate -- find files
SYNOPSIS
locate [-d dbpath] pattern
DESCRIPTION
locate searches a database for all pathnames which match the specified pattern. The database is recomputed periodically, and contains the
pathnames of all files which are publicly accessible.
Shell globbing and quoting characters (``*'', ``?'', ``'', ``['' and ``]'') may be used in pattern, although they will have to be escaped
from the shell. Preceding any character with a backslash (``'') eliminates any special meaning which it may have. The matching differs in
that no characters must be matched explicitly, including slashes (``/'').
As a special case, a pattern containing no globbing characters (``foo'') is matched as though it were ``*foo*''.
Options:
-d dbpath
Sets the list of databases to search to dbpath which can name one or more database files separated by ``:'', an empty component in the
list represents the default database. The environment variable LOCATE_PATH has the same effect.
FILES
/var/db/locate.database Default database
EXIT STATUS
locate exits with a 0 if a match is found, and >0 if no match is found or if another problem (such as a missing or corrupted database file)
is encountered.
SEE ALSO find(1), fnmatch(3), locate.conf(5), weekly.conf(5), locate.updatedb(8)
Woods, James A., "Finding Files Fast", ;login, 8:1, pp. 8-10, 1983.
HISTORY
The locate command appeared in 4.4BSD.
BSD April 19, 2004 BSD