This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ========================================================= | |
# Ubuntu 22.04 深度清理脚本(安全优化版) | |
# 功能:释放磁盘空间、清理缓存、日志与临时文件 | |
# 使用方式: | |
# chmod +x ubuntu_cleanup.sh | |
# sudo ./ubuntu_cleanup.sh | |
# ========================================================= | |
# 检查是否为root运行 |