{"id":4386,"date":"2022-12-20T17:49:08","date_gmt":"2022-12-20T20:49:08","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/updatedb-conf-man5\/"},"modified":"2022-12-20T17:49:08","modified_gmt":"2022-12-20T20:49:08","slug":"updatedb-conf-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/updatedb-conf-man5\/","title":{"rendered":"updatedb.conf (man5)"},"content":{"rendered":"<h1 align=\"center\">updatedb.conf<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#NOTES\">NOTES<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">\/etc\/updatedb.conf \u2212 a configuration file for updatedb(8)<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\/etc\/updatedb.conf<\/b> is a text file. Blank lines are ignored. A <b>#<\/b> character outside of a quoted string starts a comment extending until end of line.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Other lines must be of the following form:<\/p>\n<p style=\"margin-left:22%;\"><i>VARIABLE<\/i> <b>= &#8220;<\/b><i>VALUE<\/i><b>&#8220;<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">White space between tokens is ignored. <i>VARIABLE<\/i> is an alphanumeric string which does not start with a digit. <i>VALUE<\/i> can contain any character except for <b>&#8220;<\/b>. No escape mechanism is supported within <i>VALUE<\/i> and there is no way to write <i>VALUE<\/i> spanning more than one line.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Unknown <i>VARIABLE<\/i> values are considered an error. The defined variables are: <b><br \/> PRUNEFS<\/b><\/p>\n<p style=\"margin-left:22%;\">A whitespace-separated list of file system types (as used in <b>\/etc\/mtab<\/b>) which should not be scanned by <b>updatedb<\/b>(8). The file system type matching is case-insensitive. By default, no file system types are skipped.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">When scanning a file system is skipped, all file systems mounted in the subtree are skipped too, even if their type does not match any entry in <b>PRUNEFS<\/b>.<\/p>\n<p style=\"margin-left:11%;\"><b>PRUNENAMES<\/b><\/p>\n<p style=\"margin-left:22%;\">A whitespace-separated list of directory names (without paths) which should not be scanned by <b>updatedb<\/b>(8). By default, no directory names are skipped.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">Note that only directories can be specified, and no pattern mechanism (e.g. globbing) is used.<\/p>\n<p style=\"margin-left:11%;\"><b>PRUNEPATHS<\/b><\/p>\n<p style=\"margin-left:22%;\">A whitespace-separated list of path names of directories which should not be scanned by <b>updatedb<\/b>(8). Each path name must be exactly in the form in which the directory would be reported by <b>locate<\/b>(1).<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">By default, no paths are skipped.<\/p>\n<p style=\"margin-left:11%;\"><b>PRUNE_BIND_MOUNTS<\/b><\/p>\n<p style=\"margin-left:22%;\">One of the strings <b>0<\/b>, <b>no<\/b>, <b>1<\/b> or <b>yes<\/b>. If <b>PRUNE_BIND_MOUNTS<\/b> is <b>1<\/b> or <b>yes<\/b>, bind mounts are not scanned by <b>updatedb<\/b>(8). All file systems mounted in the subtree of a bind mount are skipped as well, even if they are not bind mounts. As an exception, bind mounts of a directory on itself are not skipped.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">By default, bind mounts are not skipped.<\/p>\n<h2>NOTES <a name=\"NOTES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">When a directory is matched by <b>PRUNEFS<\/b>, <b>PRUNENAMES<\/b> or <b>PRUNEPATHS<\/b>, <b>updatedb<\/b>(8) does not scan the contents of the directory. The path of the directory itself is, however, entered in the created database. For example, if <i>\/tmp<\/i> is in <b>PRUNEPATHS<\/b>, <b>locate<\/b>(1) will not show any files stored in <i>\/tmp<\/i>, but it can show the <i>\/tmp<\/i> directory. This behavior differs from traditional <b>locate<\/b> implementations.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">In some <b>updatedb<\/b>(8) implementations <b>PRUNEPATHS<\/b> can be used to exclude non-directory files. This is not the case in this implementation.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\/etc\/updatedb.conf<\/b> is a shell script in some implementations, which allows much more flexibility in defining the variables. Equivalent functionality can be achieved by using the command-line options to <b>updatedb<\/b>(8).<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Miloslav Trmac <mitr@redhat.com><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>locate<\/b>(1), <b>updatedb<\/b>(8)<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  \/etc\/updatedb.conf \u2212 a configuration file for updatedb(8) <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[959],"tags":[961,1291,89],"class_list":["post-4386","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-man5","tag-updatedb"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4386"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4386\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}