Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    which search technique does linux "find" use?

    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
    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
    Hi SCM
    Thank you so much ....
    take care

  4. $spacer_open

Posting Permissions

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