1 Star 0 Fork 4

xianyun/UbuntuInit

forked from azhw/UbuntuInit 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
cleanUbuntuSystem.sh 496 Bytes
一键复制 编辑 原始数据 按行查看 历史
koala 提交于 2020-03-25 17:14 +08:00 . 添加Ubuntu使用记录文件
#!/bin/bash
#清理Ubuntu系统
cleanUbuntuSystem() {
#清除所有 已经删除包的残余配置文件
dpkg -l | grep ^rc | awk '{print $2}' | tr ["\n"] [" "] | sudo xargs dpkg -P
#sudo update-grub
# 清理旧版本的软件缓存
sudo apt-get autoclean
# 清理所有软件缓存
sudo apt-get clean
# 删除系统不再使用的孤立软件
sudo apt-get autoremove
sudo apt-get install deborphan -y
rm -rf ~/.cache/thumbnails/*
}
cleanUbuntuSystem
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/linux-git/UbuntuInit.git
git@gitee.com:linux-git/UbuntuInit.git
linux-git
UbuntuInit
UbuntuInit
master

搜索帮助