Re: locate如何排除特定位置不要列入db
※ 引述《tabris@bbs.ee.ntu.edu.tw (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
討論串 (同標題文章)
完整討論串 (本文為第 2 之 2 篇):
FreeBSD 近期熱門文章
PTT數位生活區 即時熱門文章