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.