"updatedb; locate foo" vs "ls -laR > somefile; grep foo somefile" -
on single-user system security isn't issue, there any
advantage using "updatedb" , "locate" (or slocate or mlocate) instead of doing "ls -lar > somefile" nightly , using "grep phrase somefile" find files?
in fact, seem grep more flexible locate since allows regular expressions.
what missing here?
for specific scenario, differences marginal, locate
database optimized fast searches.
on multiuser system, modern locate
replacements have various additional security features e.g. not reveal user files have in private directories.
Comments
Post a Comment