㈠ CentOS是哪个版本 CentOS版本信息查看技巧
1、输抄入 cat /etc/redhat-release可以袭看到类似如下结果
CentOS Linux release 7.3.1611 (Core)
以7开头则说明是centos 7版本,若是6开头则是centos 6版本
2、输入 uname -a可以看到具体是64位系统还是32位
如带有x86_64则是64位系统,其他则为32位系统
㈡ 几种查看CentOS版本的办法,lsb_release命令等
突然想查下CentOS版本
,找了几种查看CentOS版本的办法1.
CentOS是RedHat Linux的社区发行版本,以下方法适用
[root@www ~]# cat /etc/redhat-release
CentOS release 5.2 (Final)
/etc/redhat-release配置文件用一行内容来声明 Red Hat 的名称和版本号。 由 rc.local 使用.2.
查看rpm包版本
[root@www ~]# rpm -q centos-release
centos-release-5-2.el5.centos
如果是redhat,用这个 rpm -q redhat-release3.
所有版本都可以用以下命令查看
lsb_release
-a 适用于CentOS、RedHat、Ubuntu等等。
LSB是Linux Standard Base的缩写,lsb_release命令用来显示LSB和特定版本的相关信息。
-a, –all
就是显示所有信息,显示包括版本信息、发行版的ID、发行版的描述信息、具体版本号、发行版代号的信息。
具体可以用lsb_release -h查看帮助。
[root@www ~]# lsb_release -a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description: CentOS release 5.2 (Final)
Release: 5.2
Codename: Final4.
使用uname命令也可以查看发行版本号
[root@www ~]# uname -r2.6.18-92.el5
㈢ 怎么看linux系统是centos版本
$
ldd
--version
注意看出现的第一行哦,那里就会显示glibc
xxxxx的版本。
方法二:
另一个方法是在命令行内“输入”glibc
库的名称(如容,libc.so.6),就像命令一样执行。
输出结果会显示更多关于glibc库的详细信息,包括glibc的版本以及使用的gnu编译器,也提供了glibc扩展的信息。glibc变量的位置取决于linux版本和处理器架构。
㈣ 如何查看CentOS7的版本信息
方法1:
[root@bogon ~]# uname -a
Linux bogon 3.10.0-327.18.2.el7.x86_64 #1 SMP Thu May 12 11:03:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
方法2:显示系统程序信息
[root@bogon ~]# file /bin/ls
/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=, stripped
方法3:
[root@bogon ~]# cat /proc/version
Linux version 3.10.0-327.18.2.el7.x86_64 ([email protected]) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu May 12 11:03:55 UTC 2016
方法4:
(32位的系统中int类型和long类型一般都是4字节,64位的系统中int类型还是4字节的,但是long已变成了8字节inux系统中可用"getconf WORD_BIT"和
"getconf LONG_BIT"获得word和long的位数。64位系统中应该分别得到32和64。)
[root@bogon ~]# getconf LONG_BIT
64
查看系统版本
方法1:
[root@bogon ~]# lsb_release -a
LSB 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-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.2.1511 (Core)
Release: 7.2.1511
Codename: Core
方法2:
[root@bogon ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
方法3:
[root@bogon ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
方法4:
[root@bogon ~]# rpm -q centos-release
centos-release-7-2.1511.el7.centos.2.10.x86_64
查看内核版本
方法1:
[root@bogon ~]# cat /proc/version
Linux version 3.10.0-327.18.2.el7.x86_64 ([email protected]) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu May 12 11:03:55 UTC 2016
方法2:
[root@bogon ~]# uname -a
Linux bogon 3.10.0-327.18.2.el7.x86_64 #1 SMP Thu May 12 11:03:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
参考
Centos版本 32或64位查看命令
CentOS7.1.1503查看版本信息
So do it,and change it,no regret!
㈤ 怎么查centos系统的版本号
查看CentOS版本方法
有以下命令可以查看:
# lsb_release -a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description: CentOS release 5.4 (Final)
Release: 5.4
Codename: Final
这个命令适用于所有的linux,包括Redhat、、Debian、Centos等发行版。
root@MyMail ~ # uname
Linux
root@MyMail ~ # uname -r
2.6.18-164.el5
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:35 EDT 2010 i686 i686 i386 GNU/Linux
以下二种方法适用于RedHat,CentOS
root@MyMail ~ # cat /etc/redhat-release
CentOS release 5.4 (Final)
登录到linux执行rpm -q redhat-release
#rpm -q redhat-release
或CentOS
root@MyMail ~ # rpm -q centos-release
centos-release-5-4.el5.centos.1
当前centos 版本与redhat对应的版本的命令
# cat /proc/version
Linux version 2.6.9-78.ELsmp ([email protected]) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-10)) #1 SMP Fri Jul 25 00:04:28 EDT 2008
㈥ 如何查看centos版本
有以下命令可以查看:
# lsb_release -a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description: CentOS release 5.4 (Final)
Release: 5.4
Codename: Final
这个命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版。
root@MyMail ~ # uname
Linux
root@MyMail ~ # uname -r
2.6.18-164.el5
以下二种方法适用于RedHat,CentOS
root@MyMail ~ # cat /etc/redhat-release
CentOS release 5.4 (Final)
登录到linux执行rpm -q redhat-release
#rpm -q redhat-release
或CentOS
root@MyMail ~ # rpm -q centos-release
centos-release-5-4.el5.centos.1
㈦ 如何查看CentOS版本方法
解决方法:
有以下命令可以查看:
# lsb_release -a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description: CentOS release 5.4 (Final)
Release: 5.4
Codename: Final
这个命令适用于所有的,包括Redhat、SuSE、Debian、Centos等发行版。
root@MyMail ~ # uname
Linux
root@MyMail ~ # uname -r
2.6.18-164.el5
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:35 EDT 2010 i686 i686 i386 GNU/Linux
以下二种方法适用于RedHat,CentOS
root@MyMail ~ # cat /etc/redhat-release
CentOS release 5.4 (Final)
登录到linux执行rpm -q redhat-release
#rpm -q redhat-release
或CentOS
root@MyMail ~ # rpm -q centos-release
centos-release-5-4.el5.centos.1
㈧ 如何查看已安装的CentOS的版本信息
[root@moban ~]# cat /etc/redhat-release
CentOS release 6.5 (Final)
##查看Linux系统32位or 64位
[root@moban ~]# uname –m
x86_64 //64位系统
i386/i686 //32位系统
##查看Linux系统的内核版本
[root@moban ~]# uname –r
2.6.32-504.e16.x86_64
##查看Linux系统全部信息
[root@moban ~]# uname -a
Linux moban 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服务器,您必须具备快速查看系统状态的能力,所以对于网卡网络、系统内核、系统负载、内存使用情况、当前登录用户、历史登录记录、命令执行记录以及救援诊断命令的使用方法,本介绍取自于《Linux就该这么学》这篇文章上linuxprobe.com/chapter-02.html#23,都是超级实用的。
㈨ 用什么命令可以查到 centos 的具体版本号
lsb_release -a
㈩ 如何通过命令查看CentOS版本号
内核版本:uname -a
系统版本:lsb_release -a
位数:getconf LONG_BIT