|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
How search works
Hi all,
I have a small querry in linux, How search (either find or locate) works. I would like to know the process behind when we search a particular file or for a particular pattern. Is there some thing like Index server concept in Linux. Anticipating a quick reply from your side. cheers sudheer |
|
#2
|
|||
|
|||
|
the is the "locate" function of which the database is updated usually once per day.
then there is the "find" command, but it does not use any own index, but just searches the whole filesystem. the speed while searching the filesystem depends on your ram (=cache for linux) and how effective the filesystem directory structure is layed out for searching. afaik ext2 is quite bad .also see "man find" and "man locate".
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > How search works |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|