Sharing a phone storage assassin: Termux.
Look at image 1 — Termux is at the top of the list, hogging nearly 48GB. Image 2 shows 99% of that is "User data" (47.83GB), while the app itself is only 149MB.
I dug into it, and the main reason is that I run a few environments in the container. The tmp folder (temp files) alone took 20GB, and the rest went to various dependency environments, build caches, and downloaded packages.
Heads up:
If you just tap "Clear storage" in Android settings, it wipes the entire Termux environment — all your code and configs gone! If you only want to clean up, go into the terminal and run du -sh * to find the big files, or clear /data/data/com.termux/files/usr/tmp.
Do you clear your device or app caches often?
- 经常会
- 基本不会
分享一个手机存储刺客——Termux。
看图1,Termux 霸榜占了将近 48GB;看图2,其中 99% 都是“用户数据”(47.83GB),应用本体只有 149MB。
排查了一下原因,主要是因为我在容器里跑了一些环境,其中 tmp 文件夹(临时文件)一个人就占了 20GB,剩下的空间被各种依赖环境、编译缓存和下载的包占用了。
温馨提示:
大家如果在安卓设置里直接点“清除存储空间”,会直接清空整个 Termux 环境,里面的代码和配置全没!如果只是想清理,建议进终端用 du -sh * 查一下大文件,或者清理 /data/data/com.termux/files/usr/tmp。
你会经常清设备或应用的缓存吗
- 经常会
- 基本不会
Translated by AI from 简体中文Original (简体中文)
快银 VPN,一键连接全球节点,线路稳定、延迟低。支持 Windows、macOS 等多平台,TUN 全局模式覆盖全部应用流量。无需复杂配置,下载即用。
1 replies
Sort order