1、查看内核版本
#cat /proc/version
Linux version 2.6.18-164.el5 (mockbuild@x86-003.build.bos.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Tue Aug 18 15:51:48 EDT 2009
# uname
Linux
# uname -a
.... 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
# uname -r
2.6.18-164.el5
2、查看linux版本
# lsb_release -a
LSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 5.4 (Tikanga)
Release: 5.4
Codename: Tikanga
# cat /etc/issue
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
Kernel
on an m
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.4 (Tikanga)