The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to delete/remove directory in fastest way getdpg Shell Programming and Scripting 6 03-07-2006 07:42 AM
fastest way to remove duplicates. radhika Shell Programming and Scripting 15 11-03-2005 04:27 AM
Append a field to the end of each line of a file based on searching another file. ultimate Shell Programming and Scripting 2 03-29-2005 07:21 AM
fastest copy command vascobrito UNIX for Dummies Questions & Answers 0 07-20-2004 03:02 AM
Tests of AMD's 64-bit PCs: Fastest yet Neo News, Links, Events and Announcements 0 09-24-2003 08:21 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 03-10-2008
Registered User
 

Join Date: Mar 2008
Posts: 3
Fastest way for searching the file

I want to search a file in fastest manner.
Presently I am using 'find' command. But it is taking around 15min for searching. Is there any other method through which I can do it fast?
Reply With Quote
Forum Sponsor
  #2  
Old 03-10-2008
Registered User
 

Join Date: Sep 2006
Posts: 1,580
if you know where the file roughly is, you can specify the directory to find, instead of using /.
Reply With Quote
  #3  
Old 03-10-2008
Registered User
 

Join Date: Mar 2008
Posts: 3
Actually I want to do search from root / and find out the all path for that file.
Reply With Quote
  #4  
Old 03-10-2008
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,200
use locate or slocate, if present on your distro - this utility maintains an internal DB, does file indexing, thus search is much more faster.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:37 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0