You are not logged in.

#1 2009-11-23 03:37:48

sant527
Member
Registered: 2009-06-21
Posts: 273

find files

I am looking for a good tool for finding files in my system.

I use find command but it does not show the progress of find. Presently which folder it is searching so that I can wait. It remains blank till it finds a file.

Offline

#2 2009-11-23 03:44:38

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: find files

sant527 wrote:

Presently which folder it is searching so that I can wait.

I don't understand this sentence.

Offline

#3 2009-11-23 03:56:47

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: find files

I think he meant, "Present which folder ..."

Personally, I don't use find except for scripts that need to walk the file tree. Instead, I use locate and it is much faster. The wiki should have a guide on setting some variant of it up.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#4 2009-11-23 04:11:30

shak
Member
Registered: 2009-03-16
Posts: 405

Re: find files

Just use locate , it does the job fast and it shows everything related with your search word .

Offline

#5 2009-11-23 04:23:08

sant527
Member
Registered: 2009-06-21
Posts: 273

Re: find files

Ranguvar wrote:
sant527 wrote:

Presently which folder it is searching so that I can wait.

I don't understand this sentence.

I mean in windows you can see the search tools is scanning throught the folders. But here can a see some verbose to know the scanning process of search

Offline

#6 2009-11-23 04:48:10

Mardoct
Member
Registered: 2009-08-17
Posts: 208

Re: find files

Do this every once in a while.

# updatedb

So this works.

locate <pattern>

The human being created civilization not because of willingness but of a need to be assimilated into higher orders of structure and meaning.

Offline

#7 2009-11-23 05:02:43

Sertse
Member
Registered: 2009-11-19
Posts: 35

Re: find files

What's the difference between locate and slocate though?

Offline

#8 2009-11-23 05:15:01

Mardoct
Member
Registered: 2009-08-17
Posts: 208

Re: find files

They are the same thing. Locate used to be less secure, so they made slocate. Then they just remove the locate program, and symbolically linked them for backwards compatibility.


The human being created civilization not because of willingness but of a need to be assimilated into higher orders of structure and meaning.

Offline

#9 2009-11-23 14:05:14

japetto
Member
From: Chicago, IL US
Registered: 2006-07-02
Posts: 183

Re: find files

Just keep in mind that locate/slocate is only as accurate as your last DB update.

Offline

#10 2009-11-23 15:20:49

redbit
Member
Registered: 2007-11-13
Posts: 57

Re: find files

Is there a GTK GUI for locate?

Offline

#11 2009-11-23 15:52:56

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: find files


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#12 2009-11-23 16:27:37

sant527
Member
Registered: 2009-06-21
Posts: 273

Re: find files

can any one give some examples of locate command for the following instances

1) I want to locate files only in a particular directory. Since locate will show all the instances

Offline

#13 2009-11-23 18:13:04

deej
Member
Registered: 2008-02-08
Posts: 395

Re: find files

You could pipe the output of 'locate' to 'grep':

locate opera.desktop | grep /home/deej/

...this would find 'opera.desktop' in /home/deej/ + sub-directories.

But if you only want to look in a certain directory, just use 'find'.

Deej

[EDIT]

Forgot the progress-bar part roll

You might take a look at 'clpbar' in AUR. The problem with progress bars
is they have to know how much data they are working with, so that's an
extra calculation to do before the 'find' command. Unless you just want
a 'spinner' to look at smile

Last edited by deej (2009-11-23 19:25:43)

Offline

#14 2009-11-23 19:10:37

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: find files

locate /home/deej*/opera.desktop

Search without globbing characters is actually *pattern*

Offline

Board footer

Powered by FluxBB