您的位置:首页 > 运维架构 > Linux

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

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

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

leon@Ubuntu:~/u-boot-2010.03$ uname -a
Linux 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/version
Linux 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/issue
Ubuntu 12.04.5 LTS \n \l


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

leon@Ubuntu:~/u-boot-2010.03$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.5 LTS
Release:    12.04
Codename:   precise


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

leon@Ubuntu:~/u-boot-2010.03$ lsb_release -a
No LSB modules are available.
Distributor ID       :  Ubuntu
Description          :  Ubuntu 12.04.5 LTS
Release              :  12.04
Codename             :  precise
leon@Ubuntu          :~/u-boot-2010.03$ cat /proc/cpuinfo
processor            : 0
vendor_id            : GenuineIntel
cpu family           : 6
model                : 94
model name           : Intel(R) Core(TM) i5-6300HQ CPU @ 2.30GHz
stepping             : 3
cpu MHz              : 2303.994
cache size           : 6144 KB
physical id          : 0
siblings             : 1
core id              : 0
cpu cores            : 1
apicid               : 0
initial apicid       : 0
fpu                  : yes
fpu_exception        : yes
cpuid level          : 22
wp                   : yes
flags                : 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 rdseed
bogomips             : 4607.98
clflush size         : 64
cache_alignment      : 64
address sizes        : 39 bits physical, 48 bits virtual
power management:
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息