在‘dmesg’命令后跟随‘head’命令来显示开始几行,‘dmesg | head -30′命令将显示开始的前20行
[root@hanyw-Bash-Python ~]# dmesg | head -30
[ 0.000000] Linux version 5.14.0-402.el9.x86_64 (mockbuild@x86-05.stream.rdu2.redhat.com) (gcc (GCC) 11.4.1 20230605 (Red Hat 11.4.1-2), GNU ld version 2.35.2-42.el9) #1 SMP PREEMPT_DYNAMIC Thu Dec 21 19:46:35 UTC 2023
[ 0.000000] The list of certified hardware and cloud instances for Red Hat Enterprise Linux 9 can be viewed at the Red Hat Ecosystem Catalog, https://catalog.redhat.com.