0

enter image description here

As the picture shows, I can use 'find' to search for a JPEG file in '/dev'. However, trying to do the same thing with 'locate' fails. It seems that 'locate' can search anywhere except '/dev' Can anyone tell me why?

Tianyi Cai
  • 103
  • 2
  • 9

1 Answers1

1

/dev is for device files, not user files. As such, updatedb is told to not index anything in there, since users would not be storing files there.

Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358