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

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

Post by Nate Eldredg » Mon, 06 Dec 1999 04:00:00




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

It is a lot faster, though. :)

--

Nate Eldredge

 
 
 

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

Post by Coy A Hi » Tue, 07 Dec 1999 04:00:00



>  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

"Theirs not to reason why; theirs but to do...."
Tennyson, "Charge of the Light Brigade"

 
 
 

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

Post by John Doher » Tue, 07 Dec 1999 04:00:00


| 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.

--

 
 
 

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

Post by J. Horac » Tue, 07 Dec 1999 04:00:00




> >  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

--------------------------------------------------------------------
Key fingerprint = F4EE AE5E 2F01 0DB3 62F2  A9F4 AD31 7093 4233 7AE6

 
 
 

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

Post by Brian Scanla » Tue, 14 Dec 1999 04:00:00




> > 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
--

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.