首页 > 代码库 > How to locate a path? - Unix & Linux Stack Exchange

How to locate a path? - Unix & Linux Stack Exchange

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 PATTERNs  are  allowed  if
              this  option  is used, but this option can be specified multiple
              times.
[a@localhost .dircache]$ 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


How to locate a path? - Unix & Linux Stack Exchange