Locate equivalent in UNIX


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Locate equivalent in UNIX
# 1  
Old 11-29-2011
Locate equivalent in UNIX

Hi All,

I am a frequent user of loacate in linux and really impressed with its speed and accuracy.

I would like to know if there is any such equivalent in UNIX. (not the find, which is relatively very slow)
Any locate packages which can be made available in UNIX(HP-UX) for this?

TIA,
Pradeep.

Last edited by pradebban; 11-29-2011 at 01:11 PM.. Reason: flavour of unix added
# 2  
Old 11-29-2011
Locate is part of gnu findutils. See here on how to get it:

findutils - GNU Project - Free Software Foundation (FSF)
# 3  
Old 11-29-2011
Hey Pradeep,

Use 'which' (less quotes) command to achieve this task. I've tried it on Solaris.

Thx
Vinayak
# 4  
Old 11-29-2011
Quote:
Originally Posted by Vinayak909
Hey Pradeep,

Use 'which' (less quotes) command to achieve this task. I've tried it on Solaris.

Thx
Vinayak
which command searches user's path for a file or an executable.

While locate command traverses file systems for a file or an executable ( similar to find command )
# 5  
Old 11-29-2011
There is an overhead to locate, just so you know. It's faster only because it stores a database of files on the system, which has to be updated daily by a cron job.
This User Gave Thanks to Corona688 For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need Linux equivalent for UNIX

I have a folder called "log" which has a few sub-folders say "fda" "fd7" "fdd" "fd6 .... " I wish to fire the below command inside each subfolder starting with the folder with the latest time stamp. grep "$greptime.*exit" Prod.$(hostname).log | grep $fdrdate_new If the seach did not yield... (3 Replies)
Discussion started by: mohtashims
3 Replies

2. Solaris

active directory equivalent for unix

At the moment we are integrating LDAP in our environment. Compared to Windows this process is much complicated and time consuming. With Windows you had Active Directory and if you create a new server, you just add it to the domain and your finished. Yes, I know Unix is not Windows. Are there... (1 Reply)
Discussion started by: misterx12345
1 Replies

3. HP-UX

UNIX VI editor equivalent of LINUX

Hi All, I am comfortable working in LINUX and need equivalents for HP-UX for below mentioned, 1. We use TAB key to expand/reveal a name in LINUX. Is there any way to make this work for UNIX, where it is double escape. 2. Also can we use make use of left,down,up,right keys instead... (3 Replies)
Discussion started by: pradebban
3 Replies

4. UNIX for Advanced & Expert Users

ACF2 equivalent in Unix or Linux ?

In IBM Mainframe they have something called ACF2 rule which is essentially used to control the dataset access. It is kind of a list-based access control for mainframe datasets. Is there anything equivalent to ACF2 available in Unix ? Thanks Rabi (1 Reply)
Discussion started by: indra_saha
1 Replies

5. UNIX for Dummies Questions & Answers

Equivalent of Substr in Unix

Hi, I have a shell variable which has a value 123456:abcdeg. I want to extract the value which is present before ":". Is there any command in Unix through which I can achieve this. Please suggest. Thanks, Saurabh (7 Replies)
Discussion started by: saurabhsinha23
7 Replies

6. UNIX for Dummies Questions & Answers

Unix equivalent of DOS set

Hi all, what is the equivalent command of the DOS set that lists all the environment variable and their values? Xavier. (3 Replies)
Discussion started by: xxavier
3 Replies

7. Solaris

Equivalent to locate

Does Solaris 10 have an equivalent to FreeBSD's `locate'? If not, what is the best way to search for files (allowing regexp) throughout the system? (5 Replies)
Discussion started by: Russell
5 Replies

8. Programming

IsDBCSLeadByteEx equivalent for unix

I am using IsDBCSLeadByteEx for windows, i would like to know whether there is any equivalent function in unix(linux) platform. (2 Replies)
Discussion started by: anjan_kumar_k
2 Replies

9. UNIX for Advanced & Expert Users

IsDBCSLeadByteEx equivalent for unix

I am using IsDBCSLeadByteEx for windows, i would like to know whether there is any equivalent function in unix(linux) platform. (1 Reply)
Discussion started by: anjan_kumar_k
1 Replies

10. Programming

unix equivalent for windows APIs..........................

Hi, Is there any unix equivalents available for the folllowing windows function ? FindFirstFile FindNextFile etc..... Or do i have to write an equivalent api?? Can anybody help me to do the same?? thanks in advance Ani (2 Replies)
Discussion started by: ani
2 Replies
Login or Register to Ask a Question