Article View: comp.mobile.android
Article #375Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android
From: Maria Sophia
Date: Sat, 24 Oct 2026 02:19
Date: Sat, 24 Oct 2026 02:19
233 lines
6038 bytes
6038 bytes
croy wrote:
>>I'm looking up commands to help clean out my internal 64GB sd card ('cuz I
>>gave my wife my 128GB sdcard and now I'm out of space) so these may help.
>
> "Internal 64GB sd card"? I'm not familiar with such. What is it?
Good question.
For reasons known only to the people who designed Android, the internal
storage on my phone (and who knows on how many other phones) is /sdcard.
Notice all these commands use the internal /sdcard as the file spec.
You tell me why. I don't know why. I just know that's how it is.
adb shell readlink -f /sdcard
=> /storage/emulated/0
adb shell df -h /sdcard
=> Filesystem Size Used Avail Use% Mounted on
=> /dev/fuse 50G 44G 5.5G 89% /storage/emulated
adb shell ls -lah /sdcard
=> lrw-r--r-- 1 root root 21 2008-12-31 07:00 /sdcard -> /storage/self/primary
adb shell "du -sk /sdcard/Android/*"
4 /sdcard/Android/AndroidSystemProperties
8 /sdcard/Android/cache
4086747 /sdcard/Android/data
1260639 /sdcard/Android/media
18 /sdcard/Android/obb
11 /sdcard/Android/obj
adb shell "du -ah /sdcard/SoundRecorder"
1.2M /sdcard/SoundRecorder/20260829_083254.jpg
2.0M /sdcard/SoundRecorder/20260902_094625.jpg
1.7M /sdcard/SoundRecorder/20260902_095525.jpg
3.5M /sdcard/SoundRecorder/20260902_112232.jpg
1.1M /sdcard/SoundRecorder/20260904_144121.jpg
1.1M /sdcard/SoundRecorder/20260909_180255.jpg
1.8M /sdcard/SoundRecorder/20260911_080230.jpg
2.4M /sdcard/SoundRecorder/20260915_110817.jpg
1.5M /sdcard/SoundRecorder/20260916_121334.jpg
1.3G /sdcard/SoundRecorder
Find all files over 50MB
adb shell "find /sdcard -type f -size +51200k -exec ls -ln {} \;"
adb shell "du -sk /sdcard/* 2>/dev/null"
18750 /sdcard/0000
0 /sdcard/20240424_android-contacts.vcf
44 /sdcard/20260206calendar.ics
4 /sdcard/Alarms
164 /sdcard/All Layers.gpx
5347436 /sdcard/Android
40 /sdcard/AppManager
4 /sdcard/Audiobooks
11 /sdcard/Aurora
12 /sdcard/BatteryDog
12 /sdcard/BestDAV
4 /sdcard/Books
728 /sdcard/CaptivePortalLoginGoogle
12715 /sdcard/DCIM
14 /sdcard/Documents
6640 /sdcard/DocumentsUIGoogle
4 /sdcard/Download
4 /sdcard/Id.txt
4 /sdcard/MotionDetectorPro
54394 /sdcard/Movies
33582 /sdcard/Music
43 /sdcard/MyLogs
1424 /sdcard/NetworkStackGoogle
4 /sdcard/New Folder
24 /sdcard/Notifications
592 /sdcard/OpenContacts
23619 /sdcard/OziExplorer
3548 /sdcard/PackageViewer
706142 /sdcard/Pictures
4 /sdcard/Podcasts
4 /sdcard/Rambler
280 /sdcard/RamblerSharedData
118 /sdcard/ReadEra
4 /sdcard/Recordings
184 /sdcard/Ringtones
76 /sdcard/SHAREit Lite
5799 /sdcard/Samsung
3876 /sdcard/Snapseed
1454784 /sdcard/SoundRecorder
483 /sdcard/Tracks
16 /sdcard/WifiCollector
28 /sdcard/Writer
31 /sdcard/adbAutoSave
8 /sdcard/com.android.settings
11 /sdcard/dataLogger
12 /sdcard/freeopenvpn_udp.ovpn
31 /sdcard/gpsbox
39 /sdcard/hudunrecorder
4 /sdcard/keuwlsoft
316 /sdcard/logs
132 /sdcard/master_contacts_20260430_204626.vcf
4 /sdcard/micro.repl.ma7moud3ly_15.7z
4843 /sdcard/osmdroid
1682 /sdcard/osmtracker
4 /sdcard/passwd.txt
104 /sdcard/screenshot.png
11 /sdcard/sepolicy_extends
60 /sdcard/split_arch.apkDOS
4 /sdcard/temp
4 /sdcard/weblog
12 /sdcard/window.xml
4 /sdcard/window_dump.xml
What the heck is /sdcard/micro.repl.ma7moud3ly_15.7z
adb shell "ls -lh /sdcard/micro.repl.ma7moud3ly_15.7z"
-rw-rw---- 1 root everybody 59 2026-05-17 19:22 /sdcard/micro.repl.ma7moud3ly_15.7z
adb shell "file /sdcard/micro.repl.ma7moud3ly_15.7z"
/sdcard/micro.repl.ma7moud3ly_15.7z: 7-zip archive data, version 0.4
That strange file belongs to an open-source Android app called
Micro REPL (a MicroPython/CircuitPython IDE developed by Ma7moud3ly).
So I removed it
adb shell rm /sdcard/micro.repl.ma7moud3ly_15.7z
Notice all these commands use the internal /sdcard as the file spec.
You tell me why. I don't know why. I just know that's how it is.
Technical Details
Message-ID:
<11bh4jt$2roi$1@nnrp.usenet.blueworldhosting.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED.p847012-ipxg03601okidate.aomori.ocn.ne.jp!not-for-mailReferences:
<11a96gn$b36$1@nnrp.usenet.blueworldhosting.com> <11bau61$jic$1@nnrp.usenet.blueworldhosting.com> <11bgkfb$v2j$1@nnrp.usenet.blueworldhosting.com> <11bgkoo$13vo$1@nnrp.usenet.blueworldhosting.com> <12tndll6pe28v3itjmeodj2s34krv92rsi@4ax.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED.p847012-ipxg03601okidate.aomori.ocn.ne.jp!not-for-mail From: Maria Sophia <mariasophia@comprehension.com> Newsgroups: comp.mobile.android Subject: Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Date: Fri, 23 Oct 2026 22:19:41 -0400 Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com) Message-ID: <11bh4jt$2roi$1@nnrp.usenet.blueworldhosting.com> References: <11a96gn$b36$1@nnrp.usenet.blueworldhosting.com> <11bau61$jic$1@nnrp.usenet.blueworldhosting.com> <11bgkfb$v2j$1@nnrp.usenet.blueworldhosting.com> <11bgkoo$13vo$1@nnrp.usenet.blueworldhosting.com> <12tndll6pe28v3itjmeodj2s34krv92rsi@4ax.com> Reply-To: pusvul@getTjewytR4so+mqe2.invalid Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 24 Oct 2026 02:19:41 -0000 (UTC) Injection-Info: nnrp.usenet.blueworldhosting.com; posting-account="l//KxG3Ge2LojWvwJg0Igv8F0ChK8RUC9RtOxMPUo3U"; posting-host="kDFbMLCayXSZqkA/GNCfbb/6QVvqMRZJtdlXDNEuzKE"; logging-data="93970"; mail-complaints-to="usenet@blueworldhosting.com" User-Agent: Mojibake 1p3 Cancel-Lock: sha1:1myWeYNzSXKK9zEuQF0PzRtJojE= sha256:K8NR1cucLa8lCGNgovzSi3+VlRCsjSBnekjhnR+Ybsg= sha1:hZ4gEDAdm7BBVuWtKUS2M1fEff4= sha256:4qyGAud0NHJKjYkswC+fzQXbzlvRkqoQeUlLGcT2+uY= Content-Language: en-GB