问题:通过lsb_release -a 是查看linux系统版本时报错,具体的解决办法如下:
[root@localhost ~]# lsb_release -a
-bash: lsb_release: command not found
解决方法:yum install redhat-lsb -y
安装完之后再查看版本信息:
[root@localhost upload]# lsb_release -a
LSB Version: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.3 (Final)
Release: 6.3
Codename: Final
http://blog.itblood.com/lsb_release-command-not-found-solution.html
LSB是Linux Standard Base的缩写,lsb_release命令用来显示LSB和特定版本的相关信息。
时间: 2024-10-04 19:52:12