-   Linux - Newbie (
-   -   Difference between slocate and locate cmd's (

young_rhkid 10-12-2007 12:52 PM

Difference between slocate and locate cmd's
Out of curiousity, can someone explain the difference between using the 'slocate' and the 'locate' commands?

The_JinJ 10-12-2007 01:41 PM

AFAIK the main difference is that slocate doesn't index the directories and files you don't have access to so doesn't throw up auth errors like locate

tredegar 10-13-2007 03:52 AM

On my system, they are the same:

tgar@vaio:~$ ls -l /usr/bin/locate
lrwxrwxrwx 1 root root 7 2007-02-24 07:30 /usr/bin/locate -> slocate

The_JinJ 10-13-2007 07:01 AM

That's true - locate links to slocate. It is a replacement for locate used by almost all new distros

All times are GMT -5. The time now is 06:25 PM.