温馨提示×

Ubuntu系统中如何清理不必要的启动项

小樊
50
2025-09-15 15:11:57
栏目: 智能运维

清理Ubuntu系统不必要的启动项,可使用以下方法:

  • 图形化工具
    • Startup Applications:打开“设置”,选择“应用与更新”,在“隐私”选项卡下点击“启动”,可禁用不需要的启动项。也可通过搜索找到并安装该工具使用。
    • gnome-tweaks:适用于GNOME桌面环境,安装后打开,在“启动应用程序”选项卡管理启动项。
  • 命令行工具
    • systemctl:查看启动项用systemctl list-unit-files --type=service,禁用用sudo systemctl disable <service-name>
    • update-rc.d:禁用启动项用sudo update-rc.d <service> disable
  • 删除旧内核启动项:通过dpkg --get-selections | grep linux-image查看内核,用sudo apt-get remove卸载旧内核,再sudo update-grub更新GRUB。

0