第一种:
# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
第二种:
# cat /etc/issue
Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
Kernel \r on an \m
查看核心版本:
# cat /proc/version
Linux version 2.6.9-22.ELsmp (bhcompile@porky.build.redhat.com) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 SMP Mon Sep 19 18:32:14 EDT 2005
# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
第二种:
# cat /etc/issue
Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
Kernel \r on an \m
查看核心版本:
# cat /proc/version
Linux version 2.6.9-22.ELsmp (bhcompile@porky.build.redhat.com) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 SMP Mon Sep 19 18:32:14 EDT 2005
本文介绍两种方法来查看 Red Hat 操作系统的版本信息及内核版本。第一种方法是通过 cat 命令读取 /etc/redhat-release 文件;第二种方法则是查看 /etc/issue 文件。此外,还提供了查看当前系统内核版本的命令。
1251

被折叠的 条评论
为什么被折叠?



