List all installed kernels on Ubuntu except current one

dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d'
Lists all installed kernels minus the current one. This is useful to uninstall older kernels that take too much space on /boot partition.
Sample Output
linux-image-5.11.0-38-generic
linux-modules-5.11.0-38-generic
linux-modules-extra-5.11.0-38-generic

1
By: bugmenot
2021-10-30 22:32:29

What Others Think

Your essay was quite beneficial to me, and I look forward to reading more of your work in the future. If you have the time, I recently discovered a fantastic game called slope game that you are welcome to join and play with me if you so choose.
loyedkane · 4 weeks and 1 day ago
To his great surprise, he found himself staring at 1000 other happy little dogs with their tails wagging just as fast as his. He smiled a great smile, and was answered with 1000 great smiles just as warm and firendly. As he left the House, he thought to himself, "This is a wonderful place. I will come back and visit it often." website seo
pokonubooo · 4 weeks and 1 day ago
Thank you so much for sharing your thoughts and organizing your article very well. Keep updating! home watch margate
Chaddychaddy · 4 weeks ago
Thank you very much! I'm just stuck at this point. As soon as I finish work for essaywritingservices.review, I'll definitely try this one!
jnwood · 3 weeks and 6 days ago
Buy weed online today at weeedonline.com, United States's leading online weed dispensary. We have made it possible to get top quality weed right to your doorstep due to our ever-expanding global experience. With the expansion to Australia, New Zealand, the UK, and the rest of Europe and Asia, we have made buying real weed online a breeze. Afghan ak47 kush Blue Cheese blue dream Blue Satellite Blueberry kush Buy Gorilla Glue Buy Skywalker OG Chemdawg Buy CO2 Oil Online Propane Hash Oil Rick Simpson Oil Rosin Sap Oil Shatter Oil Magic Mushroom CALM FORMULA POD INDICA 0.5 VAPE CARTRIDGE (BLACKBERRY CREAM) INDICA PAX POD PAX D. BUBBA VAPE CARTRIDGE PINEAPPLE EXPRESS 510 CARTRIDGE SATIVA CARTRIDGE (STRAWBERRY ICE) SPARK CARTRIDGE (SATIVA BLEND) Girl Scout Cookies GMO Cookies Granddaddy Purple Death Star
james01121 · 3 weeks and 6 days ago
Buy weed online today at weeedonline.com, United States's leading online weed dispensary. We have made it possible to get top quality weed right to your doorstep due to our ever-expanding global experience. With the expansion to Australia, New Zealand, the UK, and the rest of Europe and Asia, we have made buying real weed online a breeze. Afghan ak47 kush Blue Cheese blue dream Blue Satellite Blueberry kush Buy Gorilla Glue Buy Skywalker OG Chemdawg Buy CO2 Oil Online Propane Hash Oil Rick Simpson Oil Rosin Sap Oil Shatter Oil Magic Mushroom CALM FORMULA POD INDICA 0.5 VAPE CARTRIDGE (BLACKBERRY CREAM) INDICA PAX POD PAX D. BUBBA VAPE CARTRIDGE PINEAPPLE EXPRESS 510 CARTRIDGE SATIVA CARTRIDGE (STRAWBERRY ICE) SPARK CARTRIDGE (SATIVA BLEND) Girl Scout Cookies GMO Cookies Granddaddy Purple Death Star
james01121 · 3 weeks and 6 days ago
Do you want to impress your customers by showing your high quality logos? Just ask logo design for your brand to design your website or brand. In addition, web and logo design company also design brochures, logo, graphic designing, business cards and so on. Book your designer now!
LogoDezigners · 3 weeks and 5 days ago
Thank you for the information and it is really great to know that much! Thank you for sharing! concrete repair phoenix
petersongame217 · 3 weeks and 5 days ago
The reality is, digital advertising as an industry in Dubai, is still a comparatively immature market, and the majority of agencies lack the corporate expertise and infrastructure to service enterprise scaled customers.. ecommerce
robinjack · 3 weeks and 3 days ago
became a searcher,wanting to discover who i was and what made me precise. my view of myself turned into changing. i desired a stable base to start from. i commenced to resist3 stress to behave in ways that i didn’t like any greater,and i used to be delighted by who i in reality become. i got here to feel a good deal extra sure that no one can ever take my region. ref=https://www.gohotcontent.com
gohotconn · 3 weeks ago
Thank you so much for sharing your thoughts and organizing your article very well. Love a lot! io games
alanmark544 · 2 weeks and 6 days ago
It proved to be Very helpful to me and I am sure to all the commentators here! slope
gmmelissatye · 2 weeks and 6 days ago
This command is very helpful. Thanks from Dumpster Rental Cedar City, Utah
Kent35 · 2 weeks and 1 day ago
I got too much interesting stuff on your blog. I guess I am not the only one having all the enjoyment here! Keep up the good work. http://202.95.10.77/">online24jam
puce · 1 week and 6 days ago
Thanks for a very interesting post. What else may I get that kind of info written in such a perfect approach? I’ve a undertaking that I am simply now operating on, and I have been at the look out for such info. krunkerio
krunkeriogm · 1 week and 6 days ago
Nice data! Keep it up bathroom remodeling Cleveland Ohio
Breana · 1 week and 6 days ago
To love oneself is the beginning of a lifelong romance. https://www.netsmartwebs.com
carlance · 1 week and 5 days ago
To love oneself is the beginning of a lifelong romance. voip phone system
carlance · 1 week and 5 days ago
I am very much pleased with the contents you have mentioned. I wanted to thank you for this great article. ???????????
JosephWhitaker · 1 week and 3 days ago
I really loved reading your blog. It was very well authored and easy to understand. Unlike other blogs I have read which are really not that good.Thanks alot! https://www.cialisell.com/news/3
JosephWhitaker · 1 week and 3 days ago
Gotoassignmenthelp is team of leading professional writers for essay assignment help Writing Services to students all around the world. Contact us today for Best C++ Programming Help at very affordable price. Under GotoAssignmentHelp we provide many types of help to the students. We are the most reliable assignment helpers. We have gained our specialization after spending most of our times in making ourselves perfect. We providing 100% plagiarism free Assignment Help. At the point when you pick our assignment helper assistance, our faculty will consider the quality and your evaluation criteria.
annybank2018 · 1 week and 1 day ago
I have browsed most of your posts. This post is probably where I got the most useful information for my research. dark web sites
jonsrubart · 1 week ago
The wise they always like to conquer challenges, but they have not yet grasped the rules of the game Slope 2 . Challenges come continuously that no one can predict. If you are confident that you can play it, give it a try
WilliamDuncan · 6 days ago
I have read your article, it is very informative and helpful for me.I admire the valuable information you offer in your articles. Thanks for posting it.. http://www.imagesearch.photos/">images
JosephWhitaker · 2 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: