Linux tips: Delete the Linux kernel that you cannot use-general Linux technology-Linux programming and kernel information. For more information, see the following. Every time the Linux kernel in Ubuntu is upgraded to a new version, it will leave the old version, and then the GRUB menu on your machine will become longer and longer, this is nothing more than providing you with a guarantee when you encounter problems using the new kernel. In most cases, when you use the new kernel, everything works normally, you may not use the old kernel versions at all. This article will guide you how to safely delete unused old kernels.
First, you need to find out the current kernel version. Open the terminal and run the following command:
Uname-r
You will get the Linux kernel version currently in use. This version must be retained and cannot be deleted. The format is like this:
2.6.20-16-generic
Open system, system management, and new software manager ". Click the search button on the toolbar and enter linux-image-2 in the pop-up dialog box ".
In the search result list, you should be able to find the installed kernels. Now you can compare the result displayed on the terminal, select the kernel of another version that has been installed, and click "mark to delete ".
Note! Be careful not to select the kernel version you are using or the software packages that are not "linux-image. If you choose the one you shouldn't, Ubuntu will be suspended if it doesn't work well.
Click Apply to complete the operation. When you start the system next time, you will find that the redundant kernel options in the GRUB directory are missing.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.