Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using DU on Android

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.

like image 352
Falcon165o Avatar asked Feb 23 '12 20:02

Falcon165o


2 Answers

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.

like image 192
Julian Fondren Avatar answered Oct 14 '22 07:10

Julian Fondren


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

HTH

like image 41
devunwired Avatar answered Oct 14 '22 07:10

devunwired