本文共 805 字,大约阅读时间需要 2 分钟。
列出常用的centos系统查看系统信息命令
ps:centos7
1、uname
Linux
2、uname -a
Linux localhost 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
3、uname -r
3.10.0-327.el7.x86_64
4、cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
5、rpm -q centos-release
centos-release-7-2.1511.el7.centos.2.10.x86_64
如果是redhat可以调用 # rpm -q redhat-release
6、lsb_release -a
-bash: lsb_release: command not found
初始安装的centos无法执行此命令,因为缺少lsb包,我们安装下yum install -y lsb
一共176个包。。。执行下看看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
(完)
转载地址:https://blog.csdn.net/weixin_33642922/article/details/116650875 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!