Re: Recommendation for a Linux alternative to Centos - ATH9K disaster

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Nico Kadel-Garcia wrote:
<snip>
> One *does* have to remember the "mlocate" package's limitations. It
> doesn't browse network mounted directories, it doesn't browse /tmp or
> look for other excluded targets, and it runs with the nightly cron
> jobs. So if you're looking for files in /var/tmp/ or an NFS share, or
> files that were created an hour ago, well, it's back to "find".
<snip>

It's not too hard to create auxilliary db's that index specific
directory trees, and to search them when you want eg, just recipies
from /home/food/recipies:

#! /bin/bash
export DBNAME="/usr/local/food/.locatedb"
/bin/mv -v ${DBNAME} ${DBNAME}~
/usr/bin/updatedb --output=$DBNAME --prunepaths='/usr/local/food/recipies/failed-experiments'

or something like that.

Then, 

$ locate --database=/usr/local/food/.locatedb -i vanilla

Even better, in .bashrc add:

  alias drool=locate --database=/usr/local/food/.locatedb -i "

Then,

$ drool vanilla

-- 
Charles Polisher

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux