如何查看linux(ubuntu)系统版本信息及CPU信息

来源:互联网 发布:淘宝裙子知乎 编辑:程序博客网 时间:2024/06/05 19:55

捣腾linux系统时,偶尔会需要查看linux系统的版本信息。下面就是几种常用的方法:

1、输入”uname -a “,显示电脑以及操作系统的相关信息;

leon@Ubuntu:~/u-boot-2010.03$ uname -aLinux Ubuntu 3.13.0-32-generic #57~precise1-Ubuntu SMP Tue Jul 15 03:51:20 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

2、输入”cat /proc/version”,显示正在运行的内核版本;

leon@Ubuntu:~/u-boot-2010.03$ cat /proc/versionLinux version 3.13.0-32-generic (buildd@phianna) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #57~precise1-Ubuntu SMP Tue Jul 15 03:51:20 UTC 2014

3、输入”cat /etc/issue”, 显示系统发行版本信息;

leon@Ubuntu:~/u-boot-2010.03$ cat /etc/issueUbuntu 12.04.5 LTS \n \l

4、输入”lsb_release -a”,显示系统的发行版的所有信息,比如发行版的ID,描述信息,具体版本,代号;

leon@Ubuntu:~/u-boot-2010.03$ lsb_release -aNo LSB modules are available.Distributor ID: UbuntuDescription:    Ubuntu 12.04.5 LTSRelease:    12.04Codename:   precise

5、输入”cat /proc/cpuinfo”,显示cpu相关信息,包括型号、主频、内核信息等;

leon@Ubuntu:~/u-boot-2010.03$ lsb_release -aNo LSB modules are available.Distributor ID       :  UbuntuDescription          :  Ubuntu 12.04.5 LTSRelease              :  12.04Codename             :  preciseleon@Ubuntu          :~/u-boot-2010.03$ cat /proc/cpuinfoprocessor            : 0vendor_id            : GenuineIntelcpu family           : 6model                : 94model name           : Intel(R) Core(TM) i5-6300HQ CPU @ 2.30GHzstepping             : 3cpu MHz              : 2303.994cache size           : 6144 KBphysical id          : 0siblings             : 1core id              : 0cpu cores            : 1apicid               : 0initial apicid       : 0fpu                  : yesfpu_exception        : yescpuid level          : 22wp                   : yesflags                : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc pni pclmulqdq monitor ssse3 cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx rdrand hypervisor lahf_lm abm 3dnowprefetch rdseedbogomips             : 4607.98clflush size         : 64cache_alignment      : 64address sizes        : 39 bits physical, 48 bits virtualpower management:
0 0
原创粉丝点击