• Contact Us
  • Home
  • About Us
  • News
    • Entertainment
    • Trending
  • IT
    • Code
    • Cloud
    • Linux
    • Splunk
  • Login
  • Register
Upgrade
CloudiBee
  • Contact Us
  • Home
  • About Us
  • News
    • Entertainment
    • Trending
  • IT
    • Code
    • Cloud
    • Linux
    • Splunk
No Result
View All Result
  • Contact Us
  • Home
  • About Us
  • News
    • Entertainment
    • Trending
  • IT
    • Code
    • Cloud
    • Linux
    • Splunk
No Result
View All Result
CloudiBee
No Result
View All Result
Home Linux

Change default boot kernel in Linux Grub2

cloudibee by cloudibee
July 10, 2015
in Linux
0
0
SHARES
135
VIEWS
Share on FacebookShare on Twitter

When you have to change the default boot kernel of Linux which uses Grub2, instead of going through the /etc/grub2.cfg  file, here is a quick and easy tip on how to identify the kernels and set the boot kernel.

This command lists all the kernel versions installed on your machine. Note that the position of a menu entry in the list is denoted by a number starting with zero.

Table of Contents

  • You might also like
  • Linux Change Password Command: Change password expiry in Linux
  • Top Open Source Email Servers

You might also like

Linux Change Password Command: Change password expiry in Linux

April 7, 2021
Email Servers

Top Open Source Email Servers

September 7, 2021

[root@centos01 ~]# grep ^menuentry /boot/grub2/grub.cfg | cut -f 2 -d ‘ | nl -v 0      0  CentOS Linux (3.10.0-229.7.2.el7.x86_64) 7 (Core)      1  CentOS Linux (3.10.0-229.7.2.el7.x86_64) 7 (Core) with debugging 2  CentOS Linux (3.10.0-229.4.2.el7.x86_64) 7 (Core)      3  CentOS Linux (3.10.0-229.4.2.el7.x86_64) 7 (Core) with debugging      4  CentOS Linux (3.10.0-229.1.2.el7.x86_64) 7 (Core)      5  CentOS Linux (3.10.0-229.1.2.el7.x86_64) 7 (Core) with debugging      6  CentOS Linux 7 (Core), with Linux 3.10.0-229.el7.x86_64      7  CentOS Linux 7 (Core), with Linux 0-rescue-7d6bf4398fe54f89842fd24c897255d9 [root@centos01 ~]#

12345678910[root@centos01 ~]# grep ^menuentry /boot/grub2/grub.cfg | cut -f 2 -d ‘ | nl -v 0     0  CentOS Linux (3.10.0-229.7.2.el7.x86_64) 7 (Core)     1  CentOS Linux (3.10.0-229.7.2.el7.x86_64) 7 (Core) with debugging     2  CentOS Linux (3.10.0-229.4.2.el7.x86_64) 7 (Core)     3  CentOS Linux (3.10.0-229.4.2.el7.x86_64) 7 (Core) with debugging     4  CentOS Linux (3.10.0-229.1.2.el7.x86_64) 7 (Core)     5  CentOS Linux (3.10.0-229.1.2.el7.x86_64) 7 (Core) with debugging     6  CentOS Linux 7 (Core), with Linux 3.10.0-229.el7.x86_64     7  CentOS Linux 7 (Core), with Linux 0-rescue-7d6bf4398fe54f89842fd24c897255d9[root@centos01 ~]#

Change the kernel version by issuing the grub2-set-default command. This sets default boot kernel in grub2.cfg as default run. Changing the kernel version requires a reboot.

grub2-set-default 2

1grub2-set-default 2

The value number “2” passed as an argument to this command selects the kernel 2 listed above.

Previous Post

Netapp Storage Administration articles

Next Post

GeoIP Based Country Blocking for Apache

cloudibee

cloudibee

Related Posts

Linux

Linux Change Password Command: Change password expiry in Linux

by cloudibee
April 7, 2021
Email Servers
Linux

Top Open Source Email Servers

by cloudibee
September 7, 2021
Linux

How to Determine Redhat Versions Command

by cloudibee
May 27, 2022
Linux

How-to Linux List Processes in 3 Simple Commands

by cloudibee
May 27, 2022
Linux

What is Cron Job in Linux?

by cloudibee
May 27, 2022
Next Post

GeoIP Based Country Blocking for Apache

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Premium Content

Podcast with Garima Thockchom and Akhil Sahai of Gale Technologies at VMworld 2011

May 27, 2022

Podcast with Tom Lounibos, CEO of SOASTA, at Cloud Connect 2012

May 30, 2022
Launching Progressive Web Applications on App Stores in 2022

Launching Progressive Web Applications on App Stores in 2022

July 16, 2022

Browse by Category

  • Business
  • Cloud
  • Code
  • Debt
  • Entertainment
  • finance
  • Game
  • Health
  • IT
  • Lawyers
  • Lifestyle
  • Linux
  • Marketing
  • Misc
  • News
  • SEO
  • Services
  • Splunk
  • Sports
  • Tech
  • Technology
  • Tipes
  • Tips
  • Uncategorized

Browse by Tags

algorithm Apache Apache2 AWS Bash bash history Bind Blacklists Buffer C C++ CentOS Cerner chage Cloud Cloud Computing Cloud jobs Cloud Storage Cloud Suite Commands Compliance Cron job Debian Directory DMS DNS Docker Dovecot drop cache Email servers Enteprise Cloud Enterprise External FAT32 Format kernel Linux linux kernel Nirvanix passwd Sendmail SSH SSL Terminal Ubuntu

About CloudiBee

cloudibee logo


CloudiBee is an open-source for people who love technology. Here we will be sharing lots of technical information over the web so that a lot of people visit us and gain some knowledge. We are a completely open to all platform. We assure you that you can easily get any info and updated news about the tech world from us. Let's begin with us!

Hot Topic

What are the best internet options for lawyers?

by samanvya
August 15, 2022
0
What are the best internet options for lawyers?

Meeting clients, questioning possible witnesses and getting in contact with other people in the case, or preparing for hearings with...

Read more

Recent News

Lifestyle

Best Gifts To Offer A Friend Who Owned A New House

July 22, 2022
Business

The main reasons for the startup fails. How to avoid failure?

July 21, 2022
Business

Hacks for packing wine glasses so they don’t break

July 21, 2022

CloudiBee. © 2021. All Rights Reserved

No Result
View All Result
  • Contact Us
  • Home
  • About Us
  • News
    • Entertainment
    • Trending
  • IT
    • Code
    • Cloud
    • Linux
    • Splunk

CloudiBee. © 2021. All Rights Reserved

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In