5 ms·
Why would you do find / ... instead of locate ... ?
by yread 7y ago
Why would you do find / ... instead of locate ... ?
- usefulcat 7y agoProbably either because the locate database could be out of date, or because you want to do any number of things that find can do that locate can't (-mtime, -executable, -fstype, -links, etc).
- pnutjam 7y agoLocate requires a database that needs to be updated. Find does an actual search of the system.
- mehrdadn 7y agoI would be terrified if you wrote a script that used locate in place of find.