查看linux系统版本,只需要几条命令即可,接下来对常用的几个命令进行汇总:
1: uname -a (该命令用来查看linux系统内核版本,以下是我的系统信息)
Linux localhost.localdomain 3.9.5-301.fc19.x86_64 #1 SMP Tue Jun 11 19:39:38 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
2: cat /proc/version (该命令用来查看linux系统版本信息,包括内核、GCC版本等,以下是我的系统信息)
Linux version 3.9.5-301.fc19.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 4.8.1 20130603 (Red Hat 4.8.1-1) (GCC) ) #1 SMP Tue Jun 11 19:39:38 UTC 2013
3: cat /etc/issue (该命令用来查看linux系统发行版信息,以下是我的系统信息)
Fedora release 19 (Schrödinger’s Cat)
4: cat /proc/cpuinfo (这个命令可以查看系统cpu相关信息,包括型号,主频等)
processor: 0
vendor_id : AuthenticAMD
cpu family : 16
model : 6
model name : AMD Athlon(tm) II X2 240 Processor
stepping : 3
microcode : 0x10000c8
cpu MHz : 800.000
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
.....
OK!