在 Android 上使用 DU
有没有类似于 unix 命令 du 我可以在 adb shell 上使用的东西?我正在尝试找到一种方法来查看每个文件有多大,因为我有一个应用程序变得非常大并且失去控制,并且我正在尝试确定它具体是哪个文件/数据库,以便我可以解决问题。
我正在 Evo 4G 上对此进行测试并得到:
du: permission denied
或者在我 root/重新安装它之后:
du: not found
cd 到其他文件夹在任何时候都对我没有帮助。
Is there something similar to the unix command du i can use on adb shell? I'm trying to find a way to see how big each file is because I have an application that is growing very large and out of control and I am trying to determine which file/database it is specifically so I can address the problem.
I am testing this on an Evo 4G and getting:
du: permission denied
or after I root/remount it:
du: not found
cd into other folders dose not help me at any point.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
安装 Terminal IDE(或其他一些包含
du
或 BusyBox 的应用程序 - TIDE 还包含很多其他功能,但您可能不想要),然后使用其中一个终端提出问题,或者通过连接到其 telnet 服务器然后询问。Install Terminal IDE (or some other app that includes
du
or BusyBox - TIDE includes quite a lot in addition to that, which you may not want), and either ask the question with one of its terminals, or by connecting to its telnet server and then asking.ls -l
应该在adb shell
中工作,并列出当前目录中的所有文件及其大小。华泰
ls -l
should work in thadb shell
and that lists all the files in a current directory with their sizes.HTH