[SunRescue] Locate for Solaris ??

Rich Lafferty rescue at sunhelp.org
Fri May 18 22:17:39 CDT 2001


On Fri, May 18, 2001 at 06:23:01PM -0500, Eric Hall (jester_123 at yahoo.com) wrote:
> Ken Caruso wrote:
> > 
> > Does any one know if there is a locate or locate type utility for solaris
> > (such as on BSD).
> > 
> 
> Would that be the which command?
> 
> $ which perl
> /usr/bin/perl

No, "which" is a program for csh users which looks to see where
something would be in your path. (The sh equivalent is a builtin,
'type').

"locate" periodically builds a database of all of the files on your
system which you can then use to locate a particular file (which
doesn't have to be an executable in your path). Think of it as a
cached find(1).

Ken, grab slocate from

  ftp://ftp.mkintraweb.com/pub/linux/slocate/src/

The "s" is "secure", which is a very relative term but refers
to a major improvement over GNU's locate.

  -Rich

-- 
------------------------------ Rich Lafferty ---------------------------
 Sysadmin/Programmer, Instructional and Information Technology Services
   Concordia University, Montreal, QC                 (514) 848-7625
------------------------- rich at alcor.concordia.ca ----------------------



More information about the rescue mailing list