如何查看當前的內核版本、內核的啟動順序以及設置內核啟動順序


如何查看當前的內核版本、啟動順序以及設置啟動順序

#查看當前使用的內核版本
[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