Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find out the size of a directory in adb shell?

Tags:

android

adb

I want to find out storage usage of an app. I can list file size in adb shell using ls command. But, I didn't find 'du' command in adb shell. Is there any command or tool that allows me to figure out the storage usage of a directory?

Thanks.

like image 332
Kai Avatar asked Dec 16 '25 19:12

Kai


1 Answers

There's no du in /system/bin. But you can push busybox to device, and use busybox's du.

like image 133
racetrack Avatar answered Dec 19 '25 15:12

racetrack



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!