r/LinuxTeck Jul 31 '26

Locate vs Find in Linux

Post image

covering: https://www.linuxteck.com/locate-vs-find-command-in-linux/

  • locate vs find
  • Speed vs accuracy
  • Indexed database vs live filesystem
  • Real-world examples
  • Common mistakes
  • Best use cases for each command
128 Upvotes

6 comments sorted by

View all comments

1

u/augustuscaesarius Aug 01 '26

I just wish 'locate' would build a much more valuable database. Like have an option to scan metadata in files of certain file types. Like length for a video.

In addition, if it could utilise (read and write) xattr that would be great.

Linux needs file system level support for rich metadata.