以下是Debian系统回收无用数据的常用方法:
sudo apt-get clean:删除所有已下载的软件包缓存。sudo apt-get autoclean:删除过期的软件包缓存,保留最近版本。sudo apt-get autoremove:删除不再需要的依赖包。sudo apt-get purge <软件名>:彻底卸载软件及其配置文件。sudo rm -rf /tmp/*:删除/tmp目录下所有临时文件。sudo journalctl --vacuum-time=1d:删除1天前的日志。sudo rm -rf /var/log/*.log.*:手动删除旧日志文件(谨慎操作)。sudo find / -type f -size +100M -exec ls -lh {} \;:查找大于100MB的文件。rm命令删除。sudo apt-get install deborphan,然后sudo deborphan --purge。bleachbit:sudo apt-get install bleachbit,运行后选择清理项目。注意:操作前建议备份重要数据,避免误删系统关键文件。