
1、cat /proc/version
[root@localhost ~]# cat /proc/version
Linux version 2618-19481el5centosplus (mockbuild@builder17centosorg) (gcc version 412 20080704 (Red Hat 412-48)) #1 SMP Wed Jul 7 11:50:45 EDT 2010
2、uname -a
[root@localhost ~]# uname -a
Linux localhostlocaldomain 2618-19481el5centosplus #1 SMP Wed Jul 7 11:50:45 EDT 2010 i686 i686 i386 GNU/Linux
二、查看Linux系统版本的命令(3种方法):
1、lsb_release -a,即可列出所有版本信息:
[root@localhost ~]# lsb_release -a
LSB Version: :core-31-ia32:core-31-noarch:graphics-31-ia32:graphics-31-noarch
Distributor ID: CentOS
Description: CentOS release 55 (Final)
Release: 55
Codename: Final
这个命令适用于所有的Linux发行版,包括Redhat、SuSE、Debian…等发行版。
2、cat /etc/redhat-release,这种方法只适合Redhat系的Linux:
[root@localhost ~]# cat /etc/redhat-release
CentOS release 55 (Final)
3、cat /etc/issue,此命令也适用于所有的Linux发行版。
[root@localhost ~]# cat /etc/issue
CentOS release 55 (Final)
Kernel \r on an \m
我告诉你几个方法,我使用的是redhat
cat /etc/issue //查看linux的版本信息
lsb_release -a //查看LSB本身的版本信息
uname -r //Kernel版本
这三个可以解决你的问题了
1查看Ubuntu的版本使用如下命令:
2查看Linux的内核版本
更为详细的Linux命令介绍可查看“Linux命令大全”。
11 命令lsb_release -a lsb_release提供特定的LSB (Linux Standard Base)和发布版本相关信息。 ubuntu中运行lsb_release -a的结果如下: 12 命令cat /etc/issue /etc目录下放的是系统的配置文件。 /etc/issue文件通常包括系统的一段短说明或欢
Linux系统如何查看版本信息
1、查看当前 *** 作系统内核信息
uname -a
$ uname -a
Linux vm-web 3100-693211el7x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
2、查看当前 *** 作系统版本信息
cat /proc/version
$ cat /proc/version
Linux version 3100-693211el7x86_64 (builder@kbuilderdevcentosorg) (gcc version 485 20150623 (Red Hat 485-16) (GCC) ) #1 SMP Wed Mar 7 19:03:37 UTC 2018
3、查看当前 *** 作系统发行版信息
cat /etc/issue 或 cat /etc/redhat-release
$ cat /etc/issue
\S
Kernel \r on an \m
$ cat /etc/redhat-release
CentOS Linux release 741708 (Core)
4、查看cpu相关信息,包括型号、主频、内核信息等
cat /proc/cpuinfo
$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 45
model name : Intel(R) Xeon(R) CPU E5-2660 0 @ 220GHz
stepping : 7
microcode : 0xffffffff
cpu MHz : 2199998
cache size : 20480 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
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 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm xsaveopt
bogomips : 439999
clflush size : 64
cache_alignment : 64
address sizes : 44 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 45
model name : Intel(R) Xeon(R) CPU E5-2660 0 @ 220GHz
stepping : 7
microcode : 0xffffffff
cpu MHz : 2199998
cache size : 20480 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 13
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 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm xsaveopt
bogomips : 439999
clflush size : 64
cache_alignment : 64
address sizes : 44 bits physical, 48 bits virtual
power management:
5、列出所有版本信息
lsb_release -a
$ lsb_release -a
-bash: lsb_release: command not found
出现command not found说明没安装lsb_realease,可以执行命令yum install -y redhat-lsb安装lsb_realease,安装完成后,版本信息如下:
$ lsb_release -a
LSB Version: :core-41-amd64:core-41-noarch:cxx-41-amd64:cxx-41-noarch:desktop-41-amd64:desktop-41-noarch:languages-41-amd64:languages-41-noarch:printing-41-amd64:printing-41-noarch
Distributor ID: CentOS
Description: CentOS Linux release 741708 (Core)
Release: 741708
Codename: Core
以上就是关于如何查看linux系统的版本号全部的内容,包括:如何查看linux系统的版本号、linux如何查看系统版本、如何查看ubuntu当前linux版本等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)