Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm using Kubuntu 6.06 with the Ichthux packages but this question is common to any distribution using KDE:
The FIND FILES utility searches every directory off the root (/), including the directories off the /mnt directory. This means FIND is searching my files in other distributions on other partitions, and I usually have *several*, so FIND looses a LOT of time here. Is there some way to configure FIND to skip /mnt (and /media)?
Ticking the "Use files index" option box causes Kfind to crash almost immediately and takes Konqueror with it. I could umount/mount /mnt each time but that would be a pain even if I did it in a script. So far, my best option seems to be using locate <filename> after editing the PRUNEPATHS line in /etc/updatedb.conf to include /mnt, but that still isn't as easy as doing it from Konqueror would be.
I looked at the KDE file find utility when I read your post. I had never used it. It looks like it doesn't have the feature that you are looking for.
Since you also mention using the locate utility I figure that you are willing to use command line utilities. In that case I recommend using the find utility. It has an option "-mount" to prevent the search from spanning file systems. In other words if you use the "-mount" option then the find utiltity will only search the partition that it starts searching. It won't search other mounted partitions.
Code:
find / -mount
The locate command certainly has its benefits. Mainly it is a substring search so you don't have to know the entire file name to use locate. On the other hand the find command is so versatile that it can be very handy in a lot of situations.
Last edited by stress_junkie; 09-13-2006 at 09:59 AM.
Hi Stress Junkie. Yes, I tried the find command but locate seemed easier; locate takes only one parameter, the name of the file you want while find takes several and I keep forgetting to use -name :^>.
I'm still hoping someone knows a way to configure Kfind. I haven't been able to "find" its config file or even if it has one.
I looked at KFind & read "The KFind Handbook" (enter: help:kfind in the Konq. "Location" box), it wasn't much help [Revision 1.20.01 (2004-04-11)]. If you can do what you want in KFind, it isn't documented.
BTW, locate kfind.conf came up empty. There is a [b]~/.kde/share/config/kfindrc[b], it doesn't have any comments.
I agree, use CLI tools -- locate for the quick & easy stuff, find & its options for the more complicated. I especially like:
Code:
locate <broad_pattern> | grep <fine-tuned_pattern> | less -S
to get something like the "benefits of both worlds".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.