清理Ubuntu系统不必要的启动项,可使用以下方法:
systemctl list-unit-files --type=service,禁用用sudo systemctl disable <service-name>。sudo update-rc.d <service> disable。dpkg --get-selections | grep linux-image查看内核,用sudo apt-get remove卸载旧内核,再sudo update-grub更新GRUB。