Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

locate tool for AIX

499 views
Skip to first unread message

Bas de Beer

unread,
Nov 9, 1999, 3:00:00 AM11/9/99
to
Hello,

I just love the "locate" function in Linux. At work I spent a lot of
time with RS6000 machines. Does anoone know of the existance of some
similar tool for AIX?

please (also) reply to B.de...@uci.kun.nl

Thanks!


Carlito

unread,
Nov 9, 1999, 3:00:00 AM11/9/99
to
try "find", maybe not as easy as "locate" but it works well
type "man find" for more informations.

Regards


Bas de Beer a écrit dans le message <38283271...@uci.kun.nl>...

Markus Pietrek

unread,
Nov 9, 1999, 3:00:00 AM11/9/99
to
Bas de Beer wrote:

Install the findutils on aix, then make an entry in the crontab for updatedb.

You can use the sources from linux.

--
Markus Pietrek

Tel. office: +49-761-473099

Felix Castillo

unread,
Nov 9, 1999, 3:00:00 AM11/9/99
to
What does it do?

Felix

Bas de Beer schrieb:

Hemant Shah

unread,
Nov 9, 1999, 3:00:00 AM11/9/99
to
In comp.unix.aix Felix Castillo <felix.c...@dresdner-bank.com> wrote:
:)What does it do?

:) Felix


It is very useful tool. Using updatedb from cron you can build the database
of all the files on the system. locate will search the database and tell you
where the given file/expression is located. We combine the database from
all the systems on the network (Multiple AIX, HP-UX and Linux systems).
locate will tell us the location of a given file(s) on each and every
system. It is much faster than running find.


:)Bas de Beer schrieb:

:)> Hello,
:)>
:)> I just love the "locate" function in Linux. At work I spent a lot of
:)> time with RS6000 machines. Does anoone know of the existance of some
:)> similar tool for AIX?
:)>
:)> please (also) reply to B.de...@uci.kun.nl
:)>
:)> Thanks!


--
Hemant Shah /-------------------\ ^~~~~^
E-mail: NoJunkM...@xnet.com |TECHNOLOGY | | |
|No place for wimps | o|-OO-|o
TO REPLY, REMOVE NoJunkMail | -Dilbert |--- | () |
FROM MY E-MAIL ADDRESS. \-------------------/ | |
-----------------[DO NOT SEND UNSOLICITED BULK E-MAIL]------------------
I haven't lost my mind, Above opinions are mine only.
it's backed up on tape somewhere. Others can have their own.

Steve Vereecke

unread,
Nov 9, 1999, 3:00:00 AM11/9/99
to
Whats the performance impact of this tool ? any clue ?

Can the output be retrieved using a shell script in a format that can be
analysed ? csv or so ?

br Steve


"Hemant Shah" <sh...@xnet.com> wrote in message
news:809odv$b9d$1...@flood.xnet.com...

Bas de Beer

unread,
Nov 10, 1999, 3:00:00 AM11/10/99
to
Howdy Felix,

It builds an index of all the files/dirs on disk which you then can
search very fast.

Bas


Felix Castillo wrote:

> What does it do?
>
> Felix
>
> Bas de Beer schrieb:
>
> > Hello,
> >

> > I just love the "locate" function in Linux. At work I spent a lot of

> > time with RS6000 machines. Does anoone know of the existance of some

> > similar tool for AIX?


> >
> > please (also) reply to B.de...@uci.kun.nl
> >

> > Thanks!


KJRice

unread,
Nov 10, 1999, 3:00:00 AM11/10/99
to
find
man it and check out the options. It is very useful.
Bas de Beer <B.de...@uci.kun.nl> wrote in message
news:38283271...@uci.kun.nl...

Markus Pietrek

unread,
Nov 11, 1999, 3:00:00 AM11/11/99
to
Steve Vereecke wrote:
>
> Whats the performance impact of this tool ? any clue ?

It's much faster than finding all the file. locate searches only one file
(/var/lib/locatedb) for files which match the pattern. (In my case, a
development system with 8GB usage. This file is 2MB large. Scanning the whole
disk is much slower ;-) )


>
> Can the output be retrieved using a shell script in a format that can be
> analysed ? csv or so ?
>
> br Steve

The usage is "locate <partly name>"
This returns a single filename on each line which contains partly name. (which
is the same as find does).

For example: "locate .cpp" will find all files which contains .cpp in their name
(mostly c++ source files).

A better aproach is to locate all files (locate /), and egrep for your strings.

The retreived names can be used as command line arguments with xargs or in
scripts.

peter_...@my-deja.com

unread,
Nov 11, 1999, 3:00:00 AM11/11/99
to
In article <382A817E...@concept.de>,
This sounds really useful. How do I get the sources? What AIX
filesets are prereqs?

Will it work on SGI IRIX 6.4 /6.5.5?

Regards,

Pete


Sent via Deja.com http://www.deja.com/
Before you buy.

Tim Reed

unread,
Nov 11, 1999, 3:00:00 AM11/11/99
to Markus Pietrek
Markus Pietrek wrote:
>
> Steve Vereecke wrote:
> >
> > Whats the performance impact of this tool ? any clue ?
>
> It's much faster than finding all the file. locate searches only one file
> (/var/lib/locatedb) for files which match the pattern. (In my case, a
> development system with 8GB usage. This file is 2MB large. Scanning the whole
> disk is much slower ;-) )
> >
> > Can the output be retrieved using a shell script in a format that can be
> > analysed ? csv or so ?
> >
> > br Steve
>
> The usage is "locate <partly name>"
> This returns a single filename on each line which contains partly name. (which
> is the same as find does).
>
> For example: "locate .cpp" will find all files which contains .cpp in their name
> (mostly c++ source files).
>
> A better aproach is to locate all files (locate /), and egrep for your strings.
>
> The retreived names can be used as command line arguments with xargs or in
> scripts.

It sounds to me that you can do the same thing by running find
nightly (find / -print > file.lst), then using grep (or egrep) on
the file that was created.

Tim
--
*****************************************************************
Tim Reed
UNIX Systems Administrator
rpg...@email.sps.mot.com
*****************************************************************

0 new messages