Rumah > Artikel > Operasi dan penyelenggaraan > 如何查看linux版本
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、# 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
Atas ialah kandungan terperinci 如何查看linux版本. Untuk maklumat lanjut, sila ikut artikel berkaitan lain di laman web China PHP!