Linux下查看版本及系统信息

一、查看Linux发行版本

[root@localhost ~]# cat /etc/issue
CentOS release 6.8 (Final)
Kernel \r on an \m
[root@localhost ~]# cat /etc/redhat-release
CentOS release 6.8 (Final)

 二、查看Linux内核信息

[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.32-642.1.1.el6.x86_64 #1 SMP Tue May 31 21:57:07 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

三、查看版本信息

[root@localhost ~]# cat /proc/version
Linux version 2.6.32-642.1.1.el6.x86_64 (mockbuild@worker1.bsys.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC) ) #1 SMP Tue May 31 21:57:07 UTC 2016

四、查看Linux系统cpu相关信息(型号、主频、内核等)

[root@localhost ~]# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 60
model name      : Intel Core Processor (Haswell)
stepping        : 1
microcode       : 1
cpu MHz         : 2399.996
cache size      : 4096 KB
physical id     : 0
siblings        : 1
core id         : 0
cpu cores       : 1
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat                                                                     pse36 clflush mmx fxsr sse sse2 syscall nx rdtscp lm constant_tsc rep_good unfai                                                                    r_spinlock pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt t                                                                    sc_deadline_timer aes xsave avx hypervisor lahf_lm xsaveopt fsgsbase bmi1 avx2 s                                                                    mep bmi2 erms invpcid
bogomips        : 4799.99
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:

五、查看Linux系统位数

[root@localhost ~]# getconf LONG_BIT
64

 

相关推荐
©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页