看板FreeBSD
标 题Re: locate如何排除特定位置不要列入db
发信站SayYA 资讯站 (Thu Jun 24 15:14:30 2004)
转信站ptt!ctu-reader!news.nctu!SayYa
※ 引述《[email protected] (Tabris)》之铭言:
> 请问locate.updatedb要如何排除特定目录(和其子目录)
> 不要列入database呢?
please man :)
man locate.updatedb :
The contents of the newly built database can be controlled by the
/etc/locate.rc file.
/etc/locate.rc :
# directories unwanted in output
#PRUNEPATHS="/tmp /usr/tmp /var/tmp"
--
真诚最可贵 用心最踏实
--
※ Origin: SayYA 资讯站 <bbs.sayya.org>
◆ From: kendlee.sayya.org