Files & Transfer Android 1.0+ Risk: READ_ONLY

Disk Usage by Directory

Calculates the total storage space consumed by directories and subtrees.

Command Syntax

adb shell du
Generic Syntax: du [-h] [-s] [-d <DEPTH>] [<path>]

Options & Parameters

Flag Description
-h Human-readable output (MB/GB).
-s Display only total size for directory.
-d <N> Maximum depth level to report.

Real-World Usage Examples

Find largest folders in internal storage
Shows folder sizes.
adb shell du -h -d 1 /sdcard/
Output:
1.2G	/sdcard/DCIM
4.8G	/sdcard/Download
820M	/sdcard/Android
350M	/sdcard/Pictures
7.1G	/sdcard/