# 自动清理硬盘空间

## 日常清理
```bash
sudo apt update && sudo apt autoremove -y && sudo apt autoclean && sudo journalctl --vacuum-time=7d
```

## 一键清理缓存类
```bash
rm -rf ~/.cache/*
npm cache clean --force
conda clean --all -y
```

## 常用清理（无需 GUI）
```bash
sudo apt install bleachbit -y
sudo bleachbit --clean \
  apt.autoclean \
  apt.autoremove \
  apt.clean \
  system.cache \
  system.localizations \
  system.tmp \
  system.trash
```

## 清理报告
执行后，使用以下命令查看清理的磁盘空间：
```bash
df -h /
du -sh /var/cache/* 2>/dev/null | sort -rh | head -10
```

---
**说明**：此技能会清理系统缓存、日志、临时文件等，释放硬盘空间。
