寻找文件

find命令 find 指定目录 指定条件 指定动作 find . -name '.php' 查找当前目录下的 .php的文件(find ./ruby/ -name '.rb') find ./ruby/ -name '*.rb' -ls 搜索并搜索其子目录下并展示详细信息。

locate命令

whereis命令 whereis php 寻找php,包括二进制文件、man、源代码文件

which命令(type php) which php 寻找到php这个系统命令

grep grep 'posix_getpid' jc.php 搜索在这个文件中有木有posix_getpid