帮助文档 > 系统入门 > 服务器相关问题 > Linux 常用命令

查看系统版本

查看系统版本

[root@VM_95_77_centos etc]# 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.4.1708 (Core)
Release:	7.4.1708
Codename:	Core
[root@VM_95_77_centos etc]#


如果命令 提示 command not found。很显然,lsb_release没有安装。于是安装:

[root@VM_95_77_centos etc]# yum install redhat-lsb -y