在 Debian 里“清理启动项”通常有几层意思,下面按最常见场景给你一套清晰做法。
Debian 现在基本都用 systemd
systemctl list-unit-files --type=service | grep enabled
sudo systemctl disable 服务名
# 例如
sudo systemctl disable bluetooth
sudo systemctl stop 服务名
sudo systemctl enable 服务名
如果你是说开机选择菜单太多
dpkg --list | grep linux-image
保留当前用的,其余可删:
sudo apt remove linux-image-旧版本
sudo update-grub
编辑:
sudo nano /etc/default/grub
修改:
GRUB_TIMEOUT=0
然后:
sudo update-grub
如果你装了桌面(GNOME / KDE):
gnome-session-properties
取消勾选不需要的
查看:
ls /etc/rc.local
ls /etc/init.d/
不建议手动改,除非你很清楚。
systemctl 禁服务update-grub如果你愿意,可以告诉我:
我可以直接给你精确命令。