How to get available/free sdcard space in android

2019-03-23 09:15发布

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.

2条回答
干净又极端
2楼-- · 2019-03-23 10:07
  1. df: Disk space details.

    adb shell df

  2. du: Disk space used by the specified files and subdirectories.

    adb shell du

  3. df -h: Disk space details in KB/MB format.

    adb shell df -h

  4. du -h: Disk space used by the specified files and subdirectories in KB/MB format.

    adb shell du -h

  5. For specific folder desk space details.

    adb shell df /system

  6. For specific folder and sub-directories desk space details

    adb shell du /system

查看更多
男人必须洒脱
3楼-- · 2019-03-23 10:18

Use df, as with any Linux distro. Not all Android devices may have it, but it usually seems to be available.

查看更多
登录 后发表回答