Clean the old kernel ubuntu

14 December 2010 at 12:31 am Leave a comment

To all Ubuntu user,, I’m sure if we ever to update the new kernel of ubuntu.. There is still the old kernel stay in there when we do booting.. For example like Linux 2.6.32-21 and the new one is Linux 2.6.32-22.. So in this session I’ll give to u the script to clean the old kernel.. First, just open ur Gedit or Notepad or ur favorit editing teks and write down this script in there..

Example Linux Kernel

1. #/bin/bash
2. ls /boot/ | grep vmlinuz | sed 's@vmlinuz-@linux-image-@g' | grep -v `uname -r` > /tmp/kernelList
3. for I in `cat /tmp/kernelList`
4. do
5. aptitude remove $I
6. done
7. rm -f /tmp/kernelList
8. update-grub

Then save it and give it name like and run in ur terminal..
1. chmod +x
2. sudo ./

After all is done restart ur pc and watch the different..hehehe..


Entry filed under: Ubuntu Lover. Tags: , .

Setting Huawei E220 Modem Change your terminal screen

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed

Blog Stats

  • 57,930 hits
free counters

AziesT on Facebook

Yahoo bot last visit Msn bot last visit SEO Stats

Our Teams


%d bloggers like this: