Alex Rivera | Logout

Why doesn't **find** find anything?

Asked 2008-08-20T21:03:54.543
17

I'm looking for shell scripts files installed on my system, but find doesn't work:

$ find /usr -name *.sh

But I know there are a ton of scripts out there. For instance:

$ ls /usr/local/lib/*.sh
/usr/local/lib/tclConfig.sh  
/usr/local/lib/tkConfig.sh

Why doesn't find work?

Edit
Report

1 Answer

8

For finding files on your disks, lean to use "locate" instead that is instantaneous (looks into a daily built index) you example would be:

locate '/usr*.sh'
answered 2009-01-24T23:28:27.497

Your Answer