আমি ফলাফল থেকে কিছু ডিরেক্টরি বাদ দিতে চেয়েছিলেন /usr/libexec/locate.updatedb সম্পাদনা দ্বারা /etc/locate.rc। দুর্ভাগ্যবশত যদি আমি সম্পাদনা locate.rc locate.updatedb চিরতরে রান করে এবং আসলে সমাপ্ত হয় না - আমাকে এটি মারতে হবে, এবং তারপরে অবস্থানের জন্য ডাটাবেস একটি খালি ফাইল।
কেন কোন ধারনা locate.rc সম্মানিত হয় না?
আমি এমএল (ওএস এক্স 10.8) এ, ম্যাকপোর্টস থেকে ব্যাশ ব্যবহার করে (ব্যাশ 4.2.37 (2) - রিলিজ), এবং আমার locate.rc লেখা আছে:
#
# /etc/locate.rc - command script for updatedb(8)
#
# $FreeBSD: src/usr.bin/locate/locate/locate.rc,v 1.9 2005/08/22 08:22:48 cperciva Exp $
#
# All commented values are the defaults
#
# temp directory
#TMPDIR="/tmp"
# the actual database
#FCODES="/var/db/locate.database"
# directories to be put in the database
#SEARCHPATHS="/"
# directories unwanted in output
PRUNEPATHS="/tmp /var/tmp /Users/me/.vim /Users/me/.cups /Users/me/tmp"
# filesystems allowed. Beware: a non-listed filesystem will be pruned
# and if the SEARCHPATHS starts in such a filesystem locate will build
# an empty database.
#
# be careful if you add 'nfs'
#FILESYSTEMS="hfs ufs"