如何用命令查看Centos7版本信息 Centos7版本信息查看 查看Linux系统是32位还是64位

 

Centos7查看系统版本方法汇总

方法1:
[gc@bogon ~]$ cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)

方法2:
[gc@bogon ~]$ lsb_release -a
-bash: lsb_release: command not found
[gc@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:

安装宝塔面板,也可以直接查看

 

查看Linux系统32位or 64位 查看Linux系统是32位还是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
##显示系统程序信息
[gc@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]=3d705971a4c4544545cb78fd890d27bf792af6d4, stripped

 

 

声明: 博客仅为信息分享,绝非推荐,网站不参与交易,内容均仅代表个人观点,仅供参考,读者务必认真考虑后下手并自担风险;一分钱一分货仍是恒久不变之真理,任何IDC都有倒闭和跑路的可能,月付和备份是最佳选择,VPS大学有专门介绍网站备份的文章,数据是无价的,经常备份,养成好习惯;本文由( VPS大学 )原创编译,转载请保留链接并注明出处;其他问题,请加入VPS大学QQ交流群 230888568 ,一起解决问题。