ADB命令,关于find grep的区别
时间:2022-03-14 02:17
grep是查找文件内的内容,find是查找文件名。
比如grep ‘text‘ * 就是查找当前文件夹中所有包含“text”的文件
find -name ‘text‘ 就是查找一个叫text的文件。
find / -name "*Bluetooth*" 全盘搜索含有Bluetooth文字的文件名称。
find ./ -name "*Bluetooth*" 只是在当前目录下搜索含有Bluetooth文字的文件名称。
find -type d 列出其包含的所有目录