linux和windows系統(tǒng)不同,linux不會產(chǎn)生無用垃圾文件,但是在升級緩存中,linux不會自動刪除這些文件,還是很占硬盤的! 一、刪除緩存 1,非常有用的清理命令: sudo apt-get autoclean 清理舊版本的軟件緩存 sudo apt-get clean 清理所有軟件緩存 sudo apt-get autoremove 刪除系統(tǒng)不再使用的孤立軟件
這三個命令主要清理升級緩存以及無用包的。 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
刪除系統(tǒng)不再使用的孤立軟件 sudo apt-get autoclean
清理舊版本的軟件緩存 dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P
清除殘余的配置文件 保證干凈。 三、刪除多余內(nèi)核 1,首先要使用這個命令查看當(dāng)前Ubuntu系統(tǒng)使用的內(nèi)核 uname -a
2,再查看所有內(nèi)核 dpkg --get-selections|grep linux
3,最后小心翼翼地刪除吧 sudo apt-get remove linux-image-2.6.32-22-generic
ps:linux-image-xxxxxx-generic 就是要刪除的內(nèi)核版本 (原文鏈接:http://blog.csdn.net/yanzi1225627/article/details/9269279) |
|