This shows you the differences between two versions of the page.
linux:excluding_directories_from_locate_updatedb [2020/06/01 22:53] |
linux:excluding_directories_from_locate_updatedb [2020/06/01 22:53] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Excluding Directories from 'locate' (updatedb) ====== | ||
+ | Edit the /etc/updatedb.conf file. Add the paths to the | ||
+ | PRUNEPATHS line. For example: | ||
+ | |||
+ | PRUNEPATHS="/tmp /var/spool /media /mnt" |