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

"find" and "locate" commands not working, linux RH5.2

0 views
Skip to first unread message

Nate Eldredge

unread,
Dec 5, 1999, 3:00:00 AM12/5/99
to
hi...@cse.psu.edu (Coy A Hile) writes:

> and i find locate just useless; it's not as versatile as find.

It is a lot faster, though. :)

--

Nate Eldredge
neld...@hmc.edu

Coy A Hile

unread,
Dec 6, 1999, 3:00:00 AM12/6/99
to
In article <384b...@news.networksplus.net>, <> wrote:
> I'm a newbee to UNIX and LINUX. I installed REDHAT 5.2 on a 486 PC
>which also has win3.1. I'm booting to LINUX using LILO, REDHAT's multi-
>os boot program. Most of everything is set up and working, however, I
>cant get either the "find" or " locate" commands to work.
> From the command line and logged on as root I enter (find / any-name)
the correct syntax is
find / -name anyname

and i find locate just useless; it's not as versatile as find.

Coy
--
Coy Hile
hi...@cse.psu.edu
"Theirs not to reason why; theirs but to do...."
Tennyson, "Charge of the Light Brigade"

John Doherty

unread,
Dec 6, 1999, 3:00:00 AM12/6/99
to
In article <384b...@news.networksplus.net>, <> wrote:

| I cant get either the "find" or " locate" commands to work.

I don't know about locate, but if you can't get find to work, you're
probably just using it wrong. find works fine. locate probably works
fine, too, I'm just not familiar with it.

| From the command line and logged on as root I enter (find / any-name)

That's not the right way to use find. For starters, enter the command
"find / -name \* -print" and see what happens: you should get a list
of lots of files written to standard output. Assuming you do, find is
probably working just fine. Read the man page for more information.

--

J. Horacio

unread,
Dec 6, 1999, 3:00:00 AM12/6/99
to
El 6 Dec 1999 00:54:30 -0500, Coy A Hile <hi...@cse.psu.edu> dijo:

> In article <384b...@news.networksplus.net>, <> wrote:
> > I'm a newbee to UNIX and LINUX. I installed REDHAT 5.2 on a 486 PC
> >which also has win3.1. I'm booting to LINUX using LILO, REDHAT's multi-
> >os boot program. Most of everything is set up and working, however, I
> >cant get either the "find" or " locate" commands to work.
> > From the command line and logged on as root I enter (find / any-name)
> the correct syntax is
> find / -name anyname

Or better still

find / -iname anyname >/tmp/newfile
^(case insensitive)

the output of find can be very large, so you'll see it passing by your
screen fast. It's a good thing to print it to a file.

--
Horacio Anno MMDCCLII ad Urbe condita
hom...@ciberia.es Valencia - ESPAÑA
--------------------------------------------------------------------
Key fingerprint = F4EE AE5E 2F01 0DB3 62F2 A9F4 AD31 7093 4233 7AE6


Brian Scanlan

unread,
Dec 13, 1999, 3:00:00 AM12/13/99
to comp.un...@list.deja.com
On Sun, Dec 05, 1999 at 10:48:19PM -0800, Nate Eldredge wrote:
> hi...@cse.psu.edu (Coy A Hile) writes:
>
> > and i find locate just useless; it's not as versatile as find.
>
> It is a lot faster, though. :)

Yes, this is the sole purpose of locate. It's quick.
It's not overly versitile, but I don't want it to be.
I like being able to find files according to name.

Find is not an option on a multiuser server.

Slocate should be used, rather than locate, btw.

Brian
--
Brian Scanlan sup...@hos.horizon.ie
Horizon Open Systems Ltd. http://www.hos.horizon.ie
East Point Business Park Tel:+353-1-805-5700
Dublin 3, Ireland Fax:+353-1-805-5601


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

0 new messages