linux和windows系统不同,linux不会产生无用垃圾文件,但是在升级缓存中,linux不会自动删除这些文件,还是很占硬盘的! 一、删除缓存 1,非常有用的清理命令: sudo apt-get autoclean 清理旧版本的软件缓存 sudo apt-get clean 清理所有软件缓存 sudo apt-get autoremove 删除系统不再使用的孤立软件
这三个命令主要清理升级缓存以及无用包的。 2,清理opera firefox的缓存文件: ls ~/.opera/cache4 ls ~/.mozilla/firefox/*.default/Cache
3,清理Linux下孤立的包: sudo apt-get install deborphan -y
4,卸载:tracker 附录: 二、删除软件 ubuntu软件的删除一般用“ubuntu软件中心”或“新立得”就能搞定,但有时用命令似乎更快更好~~ sudo apt-get remove --purge 软件名
sudo apt-get autoremove
删除系统不再使用的孤立软件 sudo apt-get autoclean
清理旧版本的软件缓存 dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P
清除残余的配置文件 保证干净。 三、删除多余内核 1,首先要使用这个命令查看当前Ubuntu系统使用的内核 uname -a
2,再查看所有内核 dpkg --get-selections|grep linux
3,最后小心翼翼地删除吧 sudo apt-get remove linux-image-2.6.32-22-generic
ps:linux-image-xxxxxx-generic 就是要删除的内核版本 (原文链接:http://blog.csdn.net/yanzi1225627/article/details/9269279) |
|