Shell find:查找文件

可参考:  https://www.cnblogs.com/peida/archive/2012/11/16/2773289.html
 
命令:
find  path  -option  [  -print ]  [ -exec  -ok  command  ]  {}  \;
 
例子:
1.指定文件查询:
gec@ubuntu:/mnt/hgfs/GZ1725/7-sys/shell/code$ find / -name "fb.h"

2.模糊文件查询
gec@ubuntu:/mnt/hgfs/GZ1725/7-sys/shell/code$ find / -name  *.h


猜你喜欢

转载自blog.51cto.com/13502993/2414317