updatedb makes a slocate database

Eric Lee Green plug-discuss@lists.plug.phoenix.az.us
Wed, 18 Dec 2002 09:48:16 -0700


On Wednesday 18 December 2002 09:51 am, Michael Havens wrote:
> So it speeds up both locate and slocate?

'slocate' is the command that you usually find named 'locate' on a Linux 
system. It's just a secure version of the original 'locate' command. 

[eric@elap html]$ which locate
/usr/bin/locate
[eric@elap html]$ rpm -qf /usr/bin/locate
slocate-2.6-5mdk
[eric@elap html]$ which slocate
/usr/bin/slocate
[eric@elap html]$ rpm -qf /usr/bin/slocate
slocate-2.6-5mdk
[eric@elap html]$ ls -li /usr/bin/locate
 321572 -rwxr-sr-x    2 root     slocate     28120 Jul 17 10:39 
/usr/bin/locate*
[eric@elap html]$ ls -li /usr/bin/slocate
 321572 -rwxr-sr-x    2 root     slocate     28120 Jul 17 10:39 
/usr/bin/slocate*
[eric@elap html]

Same inode number, same command. 

-- 
Eric Lee Green          GnuPG public key at http://badtux.org/eric/eric.gpg
          mailto:eric@badtux.org  Web: http://www.badtux.org