Why doesn't **find** find anything?
问题 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? 回答1: Try quoting the wildcard: $ find /usr -name \*.sh or: $ find /usr -name '*.sh' If you happen to have a file that matches *.sh in the current working directory, the wildcard will be expanded before find sees it. If you