在Unix / Linux中包含查找命令搜索文件,但我不知道在Android中哪一个命令可以用来搜索文件。请给我一个例子。
Unix/Linux contains "find" command for searching files, but I do not know which command in android can be used to search for a file. Please give me an example.
您可能无法找到查找
和的grep
在所有设备上,所以可能是你安全的赌注是
You may not find find
and grep
on all devices, so probably your safe bet is
$ adb shell ls -lR | grep filename_you_want
在Linux / OSX或
on Linux/OSX, or
> adb shell ls -lR | find "filename_you_want"
在Windows上。
on Windows.