centos 7
一、sl命令安装:
1、
#wget https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-13.noarch.rpm
#rpm -Uvh epel-release*rpm
#yum install sl -y
2、执行sl
$sl
可以看到一辆货车从右边跑到左边
二、cmatrix命令安装
1、
#yum install ncurses-devel -y
#wget https://www.asty.org/cmatrix2/dist/cmatrix-1.2a.tar.gz
#tar xvf cmatrix-1.2a.tar.gz
#cd cmatrix-1.2a
#./configure && make && make install
执行
$cmatrix,按q退出
如果命令不能运行,说明没安装gcc:
#yum -y install gcc
#yum -y install gcc-c++
#yum install make