查找文件: sudo find android/ -name SensorDevice.cpp
在某个目录下查找文本内容: grep -rn ".h" .
grep -r --include=*.cpp "Google Inc." . | grep "sensor" -n
查看文件夹/文件的大小:du -sh ./
find /home/xxx/target/lib \( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f 解释:在 /home/xxx/target/lib目录中查找*.a *.la的文件,打印显示,然后删除查找到的文件。
|
|
来自: dwlinux_gs > 《Linux常用命令》