查看Linux的版本

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
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值