Jump to content

How with locate search in subdirectory ?


mstdmstdd

Recommended Posts

I don't think locate can limit to a directory.  You can use find though, which will search the file system.  On the plus side, it'll find anything existing.  On the down side it may take a while on large trees.

find /the/dir -name 'file*name'

 

Link to comment
Share on other sites

  • requinix changed the title to How with locate search in subdirectory ?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.