如何查看当前的内核版本、内核的启动顺序以及设置内核启动顺序


如何查看当前的内核版本、启动顺序以及设置启动顺序

#查看当前使用的内核版本
[root@lh ~]# uname -r
3.10.0-957.27.2.el7.x86_64

#查看当前的默认启动顺序
[root@lh ~]# awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg
CentOS Linux (5.7.0-1.el7.elrepo.x86_64) 7 (Core)
CentOS Linux (5.7.0-1.el7.elrepo.x86_64) 7 (Core) with debugging
CentOS Linux (3.10.0-957.27.2.el7.x86_64) 7 (Core)
CentOS Linux (3.10.0-957.27.2.el7.x86_64) 7 (Core) with debugging
CentOS Linux 7 (Core), with Linux 3.10.0-229.el7.x86_64
CentOS Linux 7 (Core), with Linux 0-rescue-f0a4b32b2a874355af0bc42f94e7dc9a

#设置当前默认的启动顺序
[root@lh ~]# grub2-set-default 0


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM