Clearing Disk Space for Bash | Generated by AI

Home 2026.05

Bash is hard-broken again — even : (the shell noop) returns exit 1. The 101 MB of free space we had got eaten by something almost instantly (log writes, journald, whatever). I can’t run anything until we have headroom measured in GB, not MB.

A few MB isn’t enough — Claude Code’s session-env writes log and state files as it runs, and so does systemd/journald in the background. We need real breathing room.

Please run these yourself, in your own shell, and tell me the sizes you see:

# the obvious heavyweights
du -sh ~/.cache/huggingface ~/.cache/pip ~/.cache 2>/dev/null
du -sh ~/projects/zz/datasets/* 2>/dev/null
du -sh /var/log /var/lib/docker 2>/dev/null

# anything else large outside /home
sudo du -h -d2 -x / 2>/dev/null | sort -hr | head -20

# free space now
df -h /

The first few are usually the biggest wins:

Paste the output and I’ll point at the best target to clear.


Generated by AI. Curating and sharing still takes effort. If you find it useful, feel free to donate. WeChat: @lzwjavaWeChat QR · X: @lzwjava · Say hi 👋

Back Donate