Linux下如何查看版本信息, 包括位數、版本信息以及CPU內核信息、CPU具體型號等等,整個CPU信息一目了然。
1、# uname -a (Linux查看版本當前操作系統內核信息) (推薦學習:linux教程)
[hadoop@admin01 ~]$ uname -a Linux admin01 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
2、# cat /proc/version (Linux查看目前作業系統版本資訊)
[hadoop@admin01 ~]$ cat /proc/version Linux version 2.6.32-358.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Fri Feb 22 00:31:26 UTC 2013
3、# cat /etc/issue 或cat /etc/redhat-release(Linux查看版本目前作業系統發行版資訊)
[hadoop@admin01 ~]$ cat /etc/issue CentOS release 6.4 (Final) Kernel \r on an \m [hadoop@admin01 ~]$ cat /etc/redhat-release CentOS release 6.4 (Final)
4、# cat /proc/cpuinfo (Linux查看cpu相關訊息,包括型號、主頻、核心資訊等)
[hadoop@admin01 ~]$ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 60 model name : Intel(R) Core(TM) i5-4200H CPU @ 2.80GHz stepping : 3 cpu MHz : 2793.544 cache size : 3072 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts xtopology tsc_reliable nonstop_tsc aperfmperf unfair_spinlock pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm ida arat epb xsaveopt pln pts dts fsgsbase bmi1 avx2 smep bmi2 invpcid bogomips : 5587.08 clflush size : 64 cache_alignment : 64 address sizes : 42 bits physical, 48 bits virtual power management:
5、# getconf LONG_BIT (Linux查看版本說明目前CPU運行在32bit模式下, 但不代表CPU不支援64bit)
#[hadoop@admin01 ~]$ getconf LONG_BIT 64
6、##6、 # lsb_release -a (查詢系統版本)
###[root@Rocky opt]# lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch Distributor ID: CentOS Description: CentOS Linux release 7.4.1708 (Core) Release: 7.4.1708 Codename: Cor
以上是如何查看linux版本的詳細內容。更多資訊請關注PHP中文網其他相關文章!