Linux 版本查询命令
发布时间:2020-12-14 02:00:16 所属栏目:Linux 来源:网络整理
导读:1 #查看Linux 操作系统内核信息 2 3 uname -a #Linux查看版本当前操作系统内核信息 4 # 返回示例: 5 Linux instance- 1 2.6 . 32 - 754.6 . 3 .el6.x86_64 # 1 SMP Tue Oct 9 17 : 27 : 49 UTC 2018 x86_64 x86_64 x86_64 GNU/ Linux 6 7 cat /proc/ versi
1 #查看Linux 操作系统内核信息 2 3 uname -a #Linux查看版本当前操作系统内核信息 4 # 返回示例: 5 Linux instance-1 2.6.32-754.6.3.el6.x86_64 #1 SMP Tue Oct 9 17:27:49 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux 6 7 cat /proc/version #Linux查看当前操作系统版本信息 8 #返回示例: 9 Linux version 2.6.32-754.6.3.el6.x86_64 ([email?protected]01.bsys.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4 10 .7-23) (GCC) ) #1 SMP Tue Oct 9 17:27:49 UTC 2018 11 12 #Linux查看版本当前操作系统发行版信息 13 cat /etc/issue #适用于所有Linux发行版 14 #返回示例: 15 CentOS release 6.10 (Final) 16 Kernel r on an m 17 18 cat /etc/redhat-release #适用于Redhat系的发行版 19 #返回示例: 20 CentOS release 6.10 (Final) 21 22 cat /proc/cpuinfo #Linux查看cpu相关信息,包括型号、主频、内核信息等 23 #返回示例: 24 processor : 0 25 vendor_id : GenuineIntel 26 cpu family : 6 27 model : 62 28 model name : Intel(R) Xeon(R) CPU @ 2.50GHz 29 stepping : 4 30 microcode : 1 31 cpu MHz : 2500.000 32 cache size : 30720 KB 33 physical id : 0 34 siblings : 1 35 core id : 0 36 cpu cores : 1 37 apicid : 0 38 initial apicid : 0 39 fpu : yes 40 fpu_exception : yes 41 cpuid level : 13 42 wp : yes 43 flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 44 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc up rep_good xtopology nonstop_tsc unfair_spinlock eagerfpu pni pcl 45 mulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt aes xsave avx f16c rdrand hypervisor lahf_lm arat xsaveopt ssbd 46 pti retpoline ibrs ibpb stibp fsgsbase smep erms arch_capabilities 47 bogomips : 5000.00 48 clflush size : 64 49 cache_alignment : 64 50 address sizes : 46 bits physical,48 bits virtual 51 power management: 52 53 getconf LONG_BIT #Linux查看版本多少位 54 #返回示例: 55 64 56 57 lsb_release -a? #所有Linux版本都可使用 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |