clh899 发表于 2017-7-2 09:15:47

How to locate a path?

  How to locate a path? - Unix & Linux Stack Exchange
  http://unix.stackexchange.com/questions/295559/how-to-locate-a-path
  -r, --regexp REGEXP
            Search for a basic regexp REGEXP.No PATTERNsareallowedif
            thisoptionis used, but this option can be specified multiple
            times.
$ locate -r openssl/sha.h
/opt/jenkins-1.658-0/common/include/openssl/sha.h
/opt/phabricator-20160523-0/common/include/openssl/sha.h
/opt/redmine-3.3.0-1/common/include/openssl/sha.h
/usr/include/openssl/sha.h
页: [1]
查看完整版本: How to locate a path?