sh Ubuntu:清理Ubuntu上的启动分区

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh Ubuntu:清理Ubuntu上的启动分区相关的知识,希望对你有一定的参考价值。

#! /bin/bash

# First check your kernel version, so you won't delete the in-use kernel image, running:
uname -r

# Now run this command for a list of installed kernels:
sudo dpkg --list 'linux-image*'

# and delete the kernels you don't want/need anymore by running this:
sudo apt-get remove --purge linux-image-${VERSION}

# When you're done removing the older kernels, you can run this to remove ever packages you won't need anymore:
sudo apt-get autoremove

# -or-
# simply enter the following into console and use auto-complete (TAB)
sudo apt-get purge linux-image-

以上是关于sh Ubuntu:清理Ubuntu上的启动分区的主要内容,如果未能解决你的问题,请参考以下文章