列出常用的centos系统查看系统信息命令
ps:centos7
1、
uname Linux
2、
uname-a Linuxlocalhost3.10.0-327.el7.x86_64#1SMPThuNov1922:10:57UTC2015x86_64x86_64x86_64GNU/Linux
3、
uname-r 3.10.0-327.el7.x86_64
4、
cat/etc/redhat-release CentOSLinuxrelease7.2.1511(Core)
5、
rpm-qcentos-release centos-release-7-2.1511.el7.centos.2.10.x86_64
如果是redhat可以调用 # rpm -q redhat-release
6、
lsb_release-a -bash:lsb_release:commandnotfound
初始安装的centos无法执行此命令,因为缺少lsb包,我们安装下
yuminstall-ylsb
一共176个包。。。执行下看看
lsb_release-a LSBVersion::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 DistributorID:CentOS Description:CentOSLinuxrelease7.2.1511(Core) Release:7.2.1511 Codename:Core
(完)
原文链接:/centos/380712.html