在 Android 上使用 DU

发布于 2025-01-08 20:17:59 字数 301 浏览 5 评论 0原文

有没有类似于 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

屌丝范 2025-01-15 20:17:59

安装 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.

水波映月 2025-01-15 20:17:59

ls -l 应该在 adb shell 中工作,并列出当前目录中的所有文件及其大小。

华泰

ls -l should work in th adb shell and that lists all the files in a current directory with their sizes.

HTH

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文