11
rated 0 times
[
11]
[
0]
/ answers: 1 / hits: 2299
/ 3 Years ago, fri, june 11, 2021, 8:48:42
I was looking for a file in my source and tried both locate and find.
Surprisingly locate was searching in entire machine and was faster than find, which was searching only in current directory and sub directories.
Here are my shell commands for both:
find . -name vendorsetup.sh # takes 50 seconds to search all files in curren -sub directories.
locate vendorsetup.sh # takes 20 seconds to search file in whole machine.
Why this?
More From » find