LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-23-2018, 10:28 AM   #1
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 3,789

Rep: Reputation: 401Reputation: 401Reputation: 401Reputation: 401Reputation: 401
Question Question on optimizing Catfish searches re updatedb.conf file.


Hi.

I only ever want to search for files in my home directory and not my root folder.

I use the Catfish GUI app.

What should I keep/remove from /etc/updatedb.conf? Below is my current file - I removed "/media". Is it worth editing this file at all?

Code:
PRUNE_BIND_MOUNTS="yes"
# PRUNENAMES=".git .bzr .hg .svn"
#PRUNEPATHS="/tmp /var/spool /media /var/lib/os-prober /var/lib/ceph"
PRUNEPATHS="/tmp /var/spool /var/lib/os-prober /var/lib/ceph"
PRUNEFS="NFS nfs nfs4 rpc_pipefs afs binfmt_misc proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs devtmpfs fuse.mfs shfs sysfs cifs lustre tmpfs usbfs udf fuse.glusterfs fuse.sshfs curlftpfs ceph fuse.ceph fuse.rozofs"
 
Old 09-24-2018, 08:31 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,523

Rep: Reputation: 3135Reputation: 3135Reputation: 3135Reputation: 3135Reputation: 3135Reputation: 3135Reputation: 3135Reputation: 3135Reputation: 3135Reputation: 3135Reputation: 3135
I am unfamiliar with catfish and no nothing about its configuration but I know it can use several search utilities like find and locate. If you just choose find I assume that you can define the search directories?

The updatedb command scan starts at / by default. You can change the cron job that runs updatedb so it only scans your home directory.

It is also possible to create a private updatedb database but do not know if catfish has that configuration capability.
 
1 members found this post helpful.
Old 09-24-2018, 01:29 PM   #3
dezix
Member
 
Registered: Sep 2017
Location: Frog's Land
Distribution: Debian
Posts: 30

Rep: Reputation: Disabled
Just a hint ....

Code:
PRUNEPATHS="/tmp /var/spool /var/lib/os-prober /var/lib/ceph"
I'm not nativ english speacker,
but "PRUNE" sounds me like cut or exclude,

so may be if you put here every paths you wont search ....

... it could do it ???

even is there a quicker way => nothing but your own directory ?

a kind of negation

Hope, could be helpfull !
 
1 members found this post helpful.
Old 09-24-2018, 03:46 PM   #4
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 3,789

Original Poster
Rep: Reputation: 401Reputation: 401Reputation: 401Reputation: 401Reputation: 401
Question

Quote:
Originally Posted by dezix View Post
Just a hint ....

Code:
PRUNEPATHS="/tmp /var/spool /var/lib/os-prober /var/lib/ceph"
I'm not nativ english speacker,
but "PRUNE" sounds me like cut or exclude,

so may be if you put here every paths you wont search ....

... it could do it ???

even is there a quicker way => nothing but your own directory ?

a kind of negation

Hope, could be helpfull !
Hi dezix.

Ah, so maybe just change:

Code:
PRUNEPATHS="/tmp /var/spool /var/lib/os-prober /var/lib/ceph"
to
Code:
PRUNEPATHS="/"
 
Old 09-24-2018, 04:10 PM   #5
dezix
Member
 
Registered: Sep 2017
Location: Frog's Land
Distribution: Debian
Posts: 30

Rep: Reputation: Disabled
Quote:
Code:
PRUNEPATHS="/"
If you do so you will skip everything

you have to retrieve the paths you want not index by locate

do

Code:
ls -ap1 /
and make a choice


But I don't really understand "why" you want that,
since Catfish lets you choose where to search and the user directory is the default.

Just to save time when updating the database ???
 
Old 09-25-2018, 07:14 AM   #6
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 3,789

Original Poster
Rep: Reputation: 401Reputation: 401Reputation: 401Reputation: 401Reputation: 401
Quote:
Originally Posted by dezix View Post
If you do so you will skip everything

you have to retrieve the paths you want not index by locate

do

Code:
ls -ap1 /
and make a choice


But I don't really understand "why" you want that,
since Catfish lets you choose where to search and the user directory is the default.

Just to save time when updating the database ???
I think the time saving in updating the database would be nominal so I think I'll just leave it as it is.
 
Old 09-25-2018, 07:35 AM   #7
dezix
Member
 
Registered: Sep 2017
Location: Frog's Land
Distribution: Debian
Posts: 30

Rep: Reputation: Disabled
Quote:
Originally Posted by linustalman View Post
I think the time saving in updating the database would be nominal so I think I'll just leave it as it is.
May be you have a lot of stuff you won't to search...

It's not my way,

but I put all my docs (300 Go) into a separated part mounted on
Code:
/data
this way it must be easy to skip all those files while updating the locate DB

... but what happen when I want to find something here ?


So certainly you're doing well letting things as they are

Best regards !
 
Old 09-25-2018, 03:08 PM   #8
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 3,789

Original Poster
Rep: Reputation: 401Reputation: 401Reputation: 401Reputation: 401Reputation: 401
Thumbs up

Thanks for the advice, dezix & michaelk.
 
  


Reply

Tags
catfish, find, locate, search, updatedb.conf


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can't change attributes on /etc/updatedb.conf ghamilton Linux - Newbie 5 02-29-2016 11:01 AM
[SOLVED] file search in nautilus and catfish not working debian wheezy 64bit rubankumars Debian 11 08-21-2014 05:29 PM
Slackware 14.0 is missing /run in PRUNEPATHS in /etc/updatedb.conf jtsn Slackware 4 01-05-2013 11:09 AM
updatedb.conf: how to add nfs drive? Kropotkin Linux - Software 1 01-22-2010 06:49 PM
how to configure updatedb.conf file for NFS sub-directory ursidious Linux - Newbie 1 04-05-2005 06:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration