一.语法
$ find <指定目录> <指定条件> <指定动作>
- <指定目录>: 所要搜索的目录及其所有子目录。默认为当前目录及其所有子目录。
- <指定条件>: 所要搜索的文件的特征。
- <指定动作>: 对搜索结果进行特定的处理。默认为print。
二.示例
1.查找名为“temp”的目录:
find -name "temp"
2.查找名为“nginx.conf”的文件
find -name "nginx.conf"
三.参数说明
四.参考资料
[1]阮一峰,Linux的五个查找命令:http://www.ruanyifeng.com/blog/2009/10/5_ways_to_search_for_files_using_the_terminal.html