How does the "find" program knows where file is stored (more details in message...)?
by jokich from LinuxQuestions.org on (#59886)
So I am curious the usual way to find files under Linux with "find" (from GNU findutils, or src: find.c) should get the file names or at least directory names from some system file, correct?
Even if "find" simply tries to verify search term vs if-file-exists then it should know how to recurse within deep directories?
Say I run:
find /home -name logs
logs is in directory: /home/lisa-is-better-dancer-than-jennie/logs
It will find the directory + file and show it meaning at least it gets directory names from somewhere? Thanks in advance!


Even if "find" simply tries to verify search term vs if-file-exists then it should know how to recurse within deep directories?
Say I run:
find /home -name logs
logs is in directory: /home/lisa-is-better-dancer-than-jennie/logs
It will find the directory + file and show it meaning at least it gets directory names from somewhere? Thanks in advance!