LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Difference between slocate and locate cmd's (https://www.linuxquestions.org/questions/linux-newbie-8/difference-between-slocate-and-locate-cmds-591332/)

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:
Code:

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.