CentOS查看内核版本,位数,版本号

by admin on 2019年9月6日

什么样查看ubuntu的根本版本和批发版本号

1)[root@localhost ~]# cat /proc/version

1)[root@localhost ~]# cat /proc/version

CentOS查看内核版本,位数,版本号

1)[[email protected]
~]# cat /proc/version

Linux version 2.6.18-194.el5
([email protected])
(gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Fri Apr 2
14:58:14 EDT 2010

2)

[[email protected]澳门威斯尼人平台登陆,
~]# uname -a

Linux localhost.localdomain 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14
EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

3)

[[email protected]
~]# uname -r

2.6.18-194.el5

  1. 查看linux版本:

1) 列出富有版本新闻,

[[email protected]
~]# lsb_release -a

LSB Version:
:core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch

Distributor ID: CentOS

Description: CentOS release 5.5 (Final)

Release: 5.5

Codename: Final

注:这一个命令适用于具有的linux,包蕴RedHat、SUSE、Debian等发行版。

2) 施行cat /etc/issue,比如如下:

[[email protected]
~]# cat /etc/issue

CentOS release 5.5 (Final)

Kernel r on an m

3) 试行cat /etc/redhat-release ,举个例子如下:

[[email protected]
~]# cat /etc/redhat-release

CentOS release 5.5 (Final)

查看系统是60位还是三十一个人:

1、getconf LONG_BIT or getconf WORD_BIT

[[email protected]
~]# getconf LONG_BIT

64

2、file /bin/ls

[[email protected]
~]# file /bin/ls

/bin/ls: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for
GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux
2.6.9, stripped

3、lsb_release -a

[[email protected]
~]# lsb_release -a

LSB Version:
:core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch

Distributor ID: CentOS

Description: CentOS release 5.5 (Final)

Release: 5.5

Codename: Final

1)[[email protected]
~]# cat /proc/version Linux version 2.6.18-194.el5
([email protected])
(gcc version 4.1.2 20080704 (Red…

1)[root@localhost ~]# cat /proc/version

 

Linux version 2.6.18-194.el5
(mockbuild@builder10.CentOS.org)
(gcc version 4.1.2 20080704 (Red
Hat 4.1.2-48)) #1 SMP
Fri Apr 2 14:58:14 EDT 2010

Linux version 2.6.18-194.el5 (mockbuild@builder10.CentOS.org) (gcc
version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Fri Apr 2 14:58:14
EDT 2010

Linux version 2.6.18-194.el5 (mockbuild@builder10.centos.org) (gcc
version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Fri Apr 2 14:58:14
EDT 2010

不经常,大家在升高内核版本或许是从叁个本子晋级到新的本子之后,想要查看一下本人的ubuntu是还是不是升高成功。但是有未有一种相比较急忙的秘籍比方说在极端里面查看呢?答案是必定的。为了查看
Ubuntu 的本子号,能够运用以下三种方法之一。

2)

2)

2)

方法一

[root@localhost ~]# uname -a

[root@localhost ~]# uname -a

[root@localhost ~]# uname -a

 

Linux localhost.localdomain 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14
EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

Linux localhost.localdomain 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14
EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

Linux localhost.localdomain 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14
EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

在顶峰中实施下列指令:

3)

3)

3)

 

[root@localhost ~]# uname -r

[root@localhost ~]# uname -r

[root@localhost ~]# uname -r

cat /etc/issue

2.6.18-194.el5

2.6.18-194.el5

2.6.18-194.el5

 

  1. 查看linux版本:
  1. 查看linux版本:
  1. 查看linux版本:

能够查阅当前正值周转的 Ubuntu 的版本号。其出口结果类似上边包车型地铁开始和结果:

1) 列出富有版本新闻,

1) 列出全数版本新闻,

1) 列出装有版本音讯,

 

[root@localhost ~]# lsb_release -a

[root@localhost ~]# lsb_release -a

[root@localhost ~]# lsb_release -a

Ubuntu 8.04 /n /l

LSB Version:   
:core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch

LSB Version:
:core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch

LSB Version:  
 :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch

 

Distributor ID: CentOS

Distributor ID: CentOS

Distributor ID: CentOS

方法二

Description:    CentOS release 5.5 (Final)

Description: CentOS release 5.5 (Final)

Description:    CentOS release 5.5 (Final)

 

Release:        5.5

Release: 5.5

Release:        5.5

使用 lsb_release 命令也足以查阅 Ubuntu
的版本号,与措施一相比,内容更加的详细。实行命令如下:

Codename:       Final

Codename: Final

Codename:       Final

 

注:那个命令适用于全体的linux,包涵RedHat、SUSE、Debian等发行版。

注:这几个命令适用于具备的linux,蕴含RedHat、SUSE、Debian等发行版。

注:那么些命令适用于全数的linux,包涵Redhat、SuSE、Debian等发行版。

sudo lsb_release -a

2) 推行cat /etc/issue,举个例子如下:

2) 实施cat /etc/issue,比如如下:

2) 施行cat /etc/issue,举个例子如下:

 

[root@localhost ~]# cat /etc/issue

[root@localhost ~]# cat /etc/issue

[root@localhost ~]# cat /etc/issue

将出口结果: 

CentOS release 5.5 (Final)

CentOS release 5.5 (Final)

CentOS release 5.5 (Final)

 

Kernel r on an m

Kernel r on an m

Kernel r on an m

Distributor ID:    Ubuntu 

3) 实行cat /etc/redhat-release ,比如如下:

3) 实行cat /etc/redhat-release ,比方如下:

3) 实践cat /etc/redhat-release ,比方如下:

Description:    Ubuntu 8.04 

[root@localhost ~]# cat /etc/redhat-release

[root@localhost ~]# cat /etc/redhat-release

[root@localhost ~]# cat /etc/redhat-release

Release:    8.04 

CentOS release 5.5 (Final)

CentOS release 5.5 (Final)

CentOS release 5.5 (Final)

Codename:    hardy 

翻开系统是六二十一人还是三11人:

查阅系统是六十六位还是三12人:

翻看系统是60位依旧33个人:

那么,如若须求查阅内核版本号呢? 

1、getconf LONG_BIT or getconf WORD_BIT

1、getconf LONG_BIT or getconf WORD_BIT

1、getconf LONG_BIT or getconf WORD_BIT

查阅内核版本号的办法是: 

[root@localhost ~]# getconf LONG_BIT

[root@localhost ~]# getconf LONG_BIT

[root@localhost ~]# getconf LONG_BIT

打字与印刷三个终极,输入命令uname -r

64

64

64

一时候,我们在进步内核版本或许是从一个本子升级到新的本子之后,想要查看一下本人的ubuntu是或不是…

2、file /bin/ls

2、file /bin/ls

2、file /bin/ls

[root@localhost ~]# file /bin/ls

[root@localhost ~]# file /bin/ls

[root@localhost ~]# file /bin/ls

/bin/ls: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for
GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux
2.6.9, stripped

/bin/ls: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for
GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux
2.6.9, stripped

/bin/ls: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for
GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux
2.6.9, stripped

3、lsb_release  -a

3、lsb_release -a

3、lsb_release  -a

[root@localhost ~]# lsb_release -a

[root@localhost ~]# lsb_release -a

[root@localhost ~]# lsb_release -a

LSB Version:   
:core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch

LSB Version:
:core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch

LSB Version:  
 :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch

Distributor ID: CentOS

Distributor ID: CentOS

Distributor ID: CentOS

Description:    CentOS release 5.5 (Final)

Description: CentOS release 5.5 (Final)

Description:    CentOS release 5.5 (Final)

Release:        5.5

Release: 5.5

Release:        5.5

Codename:       Final

Codename: Final

Codename:       Final

在linux中大家要操作任丁芯西都亟需利用命令格局来操作了,所以一旦想了然linux服务器的爱人能够多看看那地点的教程了,像咱们这里搜查缉获系统版本都施用了几行命令了哦。

在linux中大家要操作任何事物都急需采纳命令格局来操作了,所以只要想掌握linux服务器的爱人能够多看看那方面的科目了,像我们那边搜查缴获系统版本都利用了几行命令了啊。

澳门威斯尼人平台登陆 1

发表评论

电子邮件地址不会被公开。 必填项已用*标注

网站地图xml地图