slocate db


 
Thread Tools Search this Thread
Operating Systems Linux slocate db
# 1  
Old 07-09-2008
slocate db

Hi,

What is slocate db?

Thanks.
# 2  
Old 07-11-2008
Quote:
Secure locate provides a secure way to index and quickly search for files on your system. It uses incremental encoding just like GNU locate to compress its database to make searching faster, but it will also check file permissions and ownership so that users will not see files they do not have access to.
. The DB is the data base source - you can point from where to start, via -U and -u switches. Look at the man pages for your distro.
Basically you're saying : Here's my hard drive, crawl all over it, and store the results in data base format, with indexes, relations, etc. This makes search [locate] much faster than the traditional "find" for example. slocate is the secure version of "locate", you also might want to look at its man pages.
# 3  
Old 07-15-2008
The main difference between (s)locate and find is the overall load it puts on a system. If you have an idle timewindow somewhere during the day/night, schedule slocate to reindex your system.

When someone wants to quickly locate a file, slocate will simply access this database and give you the result without much hassle, whereas find will actually start scanning your filesystems, generating lots of IO calls.

Thus IF you have a timewindow of say an hour or so, consider implementing slocate in your environment. If not, like in my case, find is the only - IO-intense - way of locating files.

(although of course find is way way way more powerfull than slocate)
# 4  
Old 07-15-2008
thanks, more power.
Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

1. HP-UX

slocate

hello, Does anyone know where i can get a version of 'slocate' for hp-ux (11i v1). I like it on linux but can find a depot for hp-ux. Dont want to compile it on a work machine... thanks! (6 Replies)
Discussion started by: satinet
6 Replies
Login or Register to Ask a Question