I am trying to get free sdcard space with adb command, but I could not able to achieve. Any suggestions how to get the sdcard space.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Use df
, as with any Linux distro. Not all Android devices may have it, but it usually seems to be available.
回答2:
df: Disk space details.
adb shell df
du: Disk space used by the specified files and subdirectories.
adb shell du
df -h: Disk space details in KB/MB format.
adb shell df -h
du -h: Disk space used by the specified files and subdirectories in KB/MB format.
adb shell du -h
For specific folder desk space details.
adb shell df /system
For specific folder and sub-directories desk space details
adb shell du /system