Find the answer to your Linux question:
Results 1 to 3 of 3
Hi Hope everyone who reads this has a great new year... i just have a small question. i want to know that "what kind of search technique Linux find uses ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2007
    Posts
    15

    which search technique does linux "find" use?


    Hi
    Hope everyone who reads this has a great new year...
    i just have a small question. i want to know that "what kind of search technique Linux find uses is it depth first search or breadth first search or any other" and does locate use more or less the same thing as find (i know it uses a cache/database but how does it populates the cache. i mean how does the process running in the background works )... if anyone can tell me please do so... and if anyone can provide me with links to which i can refer i would be very grateful....
    once again i wish everyone a great new year 2008 hope it is a good one ...
    if anything is unclear please accept my apologizes
    take care

  2. #2
    scm
    scm is offline
    Linux Engineer
    Join Date
    Feb 2005
    Posts
    1,044
    I think find descends into directories when it finds them (so depth first). You can probably get a clue by comparing the outputs of find and ls -1 (that's a digit one). You might also get clues and pointers from the man pages.

  3. #3
    Just Joined!
    Join Date
    Aug 2007
    Posts
    15
    Hi SCM
    Thank you so much ....
    take care
    bye

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •