linux获取版本号|如何查看linux内核版本

|

Ⅰ 如何查看linux版本

一、查看Linux内核版本命令(两种方法):1、cat /proc/version[[email protected] home]# cat /proc/versionLinux version 2.6.32-431.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Fri Nov 22 03:15:09 UTC 20132、uname -a[[email protected] home]# uname -aLinux S-CentOS 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux二、查看Linux系统版本的命令(3种方法):1、lsb_release -a,即可列出所有版本信息:[[email protected] ~]# lsb_release -aLSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarchDistributor ID: CentOSDescription: CentOS release 6.5 (Final)Release: 6.5Codename: Final这个命令适用于所有的Linux发行版,包括RedHat、SUSE、Debian…等发行版。2、cat /etc/redhat-release,这种方法只适合Redhat系的Linux:[[email protected] home]# cat /etc/redhat-releaseCentOS release 6.5 (Final)3、cat /etc/issue,此命令也适用于所有的Linux发行版。[[email protected] home]# cat /etc/issueCentOS release 6.5 (Final)Kernel \r on an \m更多Linux详细知识可参考《Linux就该这么学》。

Ⅱ linux如何查看系统版本

1、通常可以点来任务栏上源的终端软件。

Ⅲ 如何查看linux内核版本

以下介绍3种查看方法:

第一种:登录linux,在终端输入cat /proc/version 运行效果如下图:

Ⅳ Linux系统怎么查看版本号

一、查看linux内核版本号

1:登录linux,在终端输入 cat /proc/version

2:登录linux,在终端输入 uname -a 即列出linux的内核专版本号 。

3: 在Linux终端输入 unmae -a 即可查看属linux的内核版本号。三种方法执行效果如下图所示:

Ⅳ 如何查看linux系统的版本号

一、查看Linux内核版本命令(两种方法):1、cat /proc/version[[email protected] ~]# cat /proc/versionLinux version 2.6.18-194.8.1.el5.centos.plus ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Wed Jul 7 11:50:45 EDT 20102、uname -a[[email protected] ~]# uname -aLinux localhost.localdomain 2.6.18-194.8.1.el5.centos.plus #1 SMP Wed Jul 7 11:50:45 EDT 2010 i686 i686 i386 GNU/Linux二、查看Linux系统版本的命令(3种方法):1、lsb_release -a,即可列出所有版本信息:[[email protected] ~]# lsb_release -aLSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarchDistributor ID: CentOSDescription: CentOS release 5.5 (Final)Release: 5.5Codename: Final这个命令适用于所有的Linux发行版,包括Redhat、SuSE、Debian…等发行版。2、cat /etc/redhat-release,这种方法只适合Redhat系的Linux:[[email protected] ~]# cat /etc/redhat-releaseCentOS release 5.5 (Final)3、cat /etc/issue,此命令也适用于所有的Linux发行版。[[email protected] ~]# cat /etc/issueCentOS release 5.5 (Final)Kernel \r on an \m

Ⅵ 如何查看linux版本的型号

Linux系统如何查看版本信息1、查看当前操作系统内核信息uname -a$ uname -aLinux vm-web 3.10.0-693.21.1.el7.x86_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/versionLinux version 3.10.0-693.21.1.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP Wed Mar 7 19:03:37 UTC 2018 3、查看当前操作系统发行版信息cat /etc/issue 或 cat /etc/redhat-release$ cat /etc/issue\SKernel \r on an \m $ cat /etc/redhat-releaseCentOS Linux release 7.4.1708 (Core) 4、查看cpu相关信息,包括型号、主频、内核信息等cat /proc/cpuinfo$ cat /proc/cpuinfoprocessor : 0vendor_id : GenuineIntelcpu family : 6model : 45model name : Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHzstepping : 7microcode : 0xffffffffcpu MHz : 2199.998cache size : 20480 KBphysical id : 0siblings : 2core id : 0cpu cores : 2apicid : 0initial apicid : 0fpu : yesfpu_exception : yescpuid level : 13wp : yesflags : 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 xsaveoptbogomips : 4399.99clflush size : 64cache_alignment : 64address sizes : 44 bits physical, 48 bits virtualpower management: processor : 1vendor_id : GenuineIntelcpu family : 6model : 45model name : Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHzstepping : 7microcode : 0xffffffffcpu MHz : 2199.998cache size : 20480 KBphysical id : 0siblings : 2core id : 1cpu cores : 2apicid : 1initial apicid : 1fpu : yesfpu_exception : yescpuid level : 13wp : yesflags : 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 xsaveoptbogomips : 4399.99clflush size : 64cache_alignment : 64address sizes : 44 bits physical, 48 bits virtualpower 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 -aLSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarchDistributor ID: CentOSDescription: CentOS Linux release 7.4.1708 (Core)Release: 7.4.1708Codename: Core

Ⅶ linux系统查看系统版本命令

一、查看Linux内核版本命令

方法一:cat/proc/version

用法:[[email protected] home]# cat /proc/version

方法二:uname-a

用法:[[email protected] home]# uname-a

二、查看Linux系统版本的命令

方法一:lsb_release -a

用法:[[email protected] ~]# lsb_release -a

注意:使用该命令即可列出所有版本信息,这个命令适用于所有的Linux发行版,包括RedHat、SUSE、Debian等发行版。

方法二:cat /etc/redhat-release

用法:[[email protected] home]# cat /etc/redhat-release

注意:该方法只适合Redhat系的Linux

方法三:cat /etc/issue

用法:[[email protected] home]# cat /etc/issue

注意:该命令也适用于所有的Linux发行版


赞 (0)