LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   when finding files in Konqueror, why use the files index? (http://www.linuxquestions.org/questions/linux-general-1/when-finding-files-in-konqueror-why-use-the-files-index-712055/)

newbiesforever 03-16-2009 04:30 PM

when finding files in Konqueror, why use the files index?
 
When I use the "Find File" function in Konqueror, it never displays the files it finds. All it does is list the number of files and folders, at the bottom of the window. The kind of search I've been doing is for a *.* containing certain words. Well, I just solved my problem: the answer is that "use files index" wasn't checked by default, and apparently must be.
Okay, but if Konqueror has to use the files index, why do I have the option of telling it not to? When would it not be counterproductive, as in this situation?

Spudley 03-18-2009 10:38 AM

I dunno.... I've never used the "Use files index" option... honestly, I hadn't even noticed it was there until you pointed it out.

From what I can gather, this checkbox is used if you want to do a large search for something across the whole system -- ie you don't know where a particular file is located. It seems to make the search use the the shell "locate" command rather than the "find" command that is used if you don't have it ticked. (nb: this is just what I'm inferring having looked into it for a few minutes; anyone who knows better is free to correct me! ;-) )

So, if the search isn't working without "use files index" ticked, then I'd say that either (a) you're doing a very large search and it's just taking a very long time, and you're not being patient enough, or (b) the "find" command in your computer isn't working correctly, but "locate" is. I would guess at (a), but you can check for (b) by going to a shell prompt and typing "find", and seeing what comes up.


One thing I would say, though, is use * as your wildcard, not *.* -- unlike Windows, not all files have a dot in their name.

Cheers!


SDC.

newbiesforever 03-18-2009 02:10 PM

Quote:

Originally Posted by Spudley (Post 3479447)
I dunno.... I've never used the "Use files index" option... honestly, I hadn't even noticed it was there until you pointed it out.

One thing I would say, though, is use * as your wildcard, not *.* -- unlike Windows, not all files have a dot in their name.

Thanks, I hadn't thought of that.

knudfl 03-19-2009 03:22 PM

And the find command will always be faster,
so I never use the KDE tool.
Examples :
' find /usr/lib/ -name "*file*" '
or ' find . -name "*file*" '
where the dot ( . ) means the current directory, e.g. /home/"username"
......

knudfl 03-20-2009 10:06 AM

I forgot this

'find . -iname "*file*"

-iname is important > > both 'upper case' and
'lower case' spelled words will be found.
......


All times are GMT -5. The time now is 05:36 AM.