Sample Header Ad - 728x90

`updatedb` to grab everything possible

-1 votes
1 answer
476 views
updatedb.findutils and updatedb.mlocate don't seem to grab everything possible. How can they be instructed to include all files?
$ printf 'locate: %s, smaller than find: %s\n' "$(sudo locate '*' | wc -l | numfmt --grouping)" "$(sudo find / | wc -l | numfmt --grouping)"
locate: 9 348, smaller than find: 14 053
updatedb was run as root. Like title suggest, I want to *grab everything possible*. I don't want to limit locate, updatedb or find in its scope. I can't modify .conf files. I rather need a command that work as-is without modifying files Answer still gives different results
$ printf 'locate.mlocate: %s, smaller than find: %s\n' "$(sudo updatedb.mlocate --prune-bind-mounts no --prunefs "" --prunenames "" --prunepaths ""; sudo locate.mlocate '*' | wc -l | numfmt --grouping)" "$(sudo find / | wc -l | numfmt --grouping)"
locate.mlocate: 13 598, smaller than find: 14 053
$ printf 'locate.findutils: %s, smaller than find: %s\n' "$(sudo updatedb.findutils --prunepaths="" --prunefs=""; sudo locate.findutils '*' | wc -l | numfmt --grouping)" "$(sudo find / | wc -l | numfmt --grouping)"
locate.findutils: 13 455, smaller than find: 14 053
Asked by aac (145 rep)
Jun 16, 2022, 08:24 AM
Last activity: Jun 17, 2022, 09:10 AM