环境:CentOS 6.5

[[email protected] ~]# yum -y localinstall epel-release-6-8.noarch.rpm
[[email protected] ~]# yum list| grep epel |wc -l
11461
[[email protected] ~]# yum -y install inxi
[[email protected] ~]# man inxi
[[email protected] ~]# inxi -r             //显示软件仓库列表
Repos:     Active yum sources in file: /etc/yum.repos.d/CentOS-Base.repo
           base ~ http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
           updates ~ http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
           extras ~ http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
           Active yum sources in file: /etc/yum.repos.d/epel.repo
           epel ~ https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
[[email protected] ~]#
[[email protected] ~]# inxi -W Asia,Shenzhen      //获取天气信息
Weather:   Conditions: F ( C) Time: June 1, 3:51 PM
[[email protected] ~]# 
[[email protected] ~]# inxi --help |grep '^\-F'
-F     Full output for inxi. Includes all Upper Case line letters, plus -s and -n. Does not show extra verbose
[[email protected] ~]#
[[email protected] ~]# inxi -F          //输出所有硬件信息

Inxi:获取Linux的系统和硬件信息


感谢原作者,出自:http://os.51cto.com/art/201505/477735.htm