Unix/Linux包含用于搜索文件的"find"命令,但我不知道android中的哪个命令可用于搜索文件.请举个例子.
Die*_*ano 43
您可能无法找到find和grep所有设备上的,所以可能是你安全的赌注是
$ adb shell ls -lR | grep filename_you_want
Run Code Online (Sandbox Code Playgroud)
在Linux/OSX上,或
> adb shell ls -lR | find "filename_you_want"
Run Code Online (Sandbox Code Playgroud)
在Windows上.
Ale*_*exS 22
作为find和grep不安装在我使用的设备上,我使用以下内容:
adb shell ls -R / >tree.txt
Run Code Online (Sandbox Code Playgroud)
之后,我可以使用我喜欢的任何软件(例如notepad ++或grep)在我的电脑上搜索文件tree.txt.
find doesn't work for me on my device. Doesn't seem to be installed!
However this sort of works for me:
adb shell
Run Code Online (Sandbox Code Playgroud)
(then in shell)
ls -laR | grep filename_you_want
Run Code Online (Sandbox Code Playgroud)
Hope this helps.