查看Linux的版本

来源:互联网 发布:手机装windows 编辑:程序博客网 时间:2024/05/21 10:53
1. # uname -a(Linux查看版本当前操作系统内核信息)

  Linux hadoop-slave-01 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

2. # cat /proc/version (Linux查看当前操作系统版本信息)

  Linux version 4.2.0-27-generic (buildd@lcy01-23) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 UTC 2016

3. # cat /etc/issue  或cat /etc/redhat-release(Linux查看版本当前操作系统发行版信息)

  Ubuntu 14.04.4 LTS \n \l

4. # cat /proc/cpuinfo (Linux查看cpu相关信息,包括型号、主频、内核信息等)

  processor : 46

  vendor_id : GenuineIntel

  cpu family : 6

  model : 63

  model name : Intel(R) Xeon(R) CPU E5-2650L v3 @ 1.80GHz

  stepping : 2

  microcode : 0x36

  cpu MHz : 1299.023

  cache size : 30720 KB

  physical id : 0

  siblings : 24

  core id : 13

  cpu cores : 12

  apicid : 27

  initial apicid : 27

  fpu : yes

  fpu_exception : yes

  cpuid level : 15

  wp : yes

  flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm xsaveopt cqm_llc cqm_occup_llc

  bugs :

  bogomips : 3599.92

  clflush size : 64

  cache_alignment : 64

  address sizes : 46 bits physical, 48 bits virtual

  power management:

5. # getconf LONG_BIT  (Linux查看版本说明当前CPU运行在32bit模式下, 但不代表CPU不支持64bit

  64

6. # lsb_release -a
原创粉丝点击