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 Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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 10:42 AM
fastest way to remove duplicates. radhika Shell Programming and Scripting 15 11-03-2005 07: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 11:21 AM
fastest copy command vascobrito UNIX for Dummies Questions & Answers 0 07-20-2004 07:02 AM
Tests of AMD's 64-bit PCs: Fastest yet Neo News, Links, Events and Announcements 0 09-24-2003 12:21 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-10-2008
vaibhavbhat vaibhavbhat is offline
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?
  #2 (permalink)  
Old 03-10-2008
ghostdog74 ghostdog74 is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2006
Posts: 2,543
if you know where the file roughly is, you can specify the directory to find, instead of using /.
  #3 (permalink)  
Old 03-10-2008
vaibhavbhat vaibhavbhat is offline
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.
  #4 (permalink)  
Old 03-10-2008
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,323
use locate or slocate, if present on your distro - this utility maintains an internal DB, does file indexing, thus search is much more faster.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:16 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0