I was searching through the man pages for find for clues of UNIX find command default ordering.
Appreciate if anyone knows this.
http://unixhelp.ed.ac.uk/CGI/man-cgi?find
find just peeks the files and subdirectories as they appear in the directories, just like ls -U when this option is available.
The find command uses the opendir() function to get listings in a directory, which returns a directory stream, and it traverses the stream and evaluates each entry. The ones that matches criteria are returned in the order they are evaluated. Therefore, the order you get from the find command is how the underlying filesystem presents them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With