-   Linux - General (
-   -   Find/locate an exact file (

stefaandk 12-27-2005 07:42 AM

Find/locate an exact file
I am trying to find an exact filename which is called exe.

Don't worry about the filename but if I do a locate i comes back with every file or directory that has the pattern exe in it.

Maybe a find syntax, but find is slow?

How could I scan my filesystem for this file only?


cs-cam 12-27-2005 08:17 AM

find could proably do it but rather than fudge around with that, try this:


locate exe | grep '\/exe$'

axion0917 12-27-2005 08:56 AM

find / -name 'exe'

All times are GMT -5. The time now is 02:30 PM.