新增重置 machine-id 命令

This commit is contained in:
CallMeR
2025-11-02 22:38:55 +08:00
parent 44a1ee787c
commit ae92d79d83
+3
View File
@@ -424,6 +424,9 @@ $ sudo bash -c 'apt clean && apt autoclean && apt autoremove --purge'
## 清理系统缓存 ## 清理系统缓存
$ sudo bash -c 'find /var/cache/apt/ /var/cache/smartdns/ /var/lib/apt/lists/ /tmp/ -type f -print -delete' $ sudo bash -c 'find /var/cache/apt/ /var/cache/smartdns/ /var/lib/apt/lists/ /tmp/ -type f -print -delete'
## 重置机器标识符
$ sudo truncate -s 0 /etc/machine-id /var/lib/dbus/machine-id
## 清理系统日志 ## 清理系统日志
$ sudo bash -c 'find /var/log/ -type f -print -delete' $ sudo bash -c 'find /var/log/ -type f -print -delete'