CentOS安装fortune+cowsay

1.先找下看有没

2.安装

yum -y install fortune-mod

3.执行fortune 应该可以输出了,接着去弄中文词库,阮一峰的:

git clone git@github.com:ruanyf/fortunes.git

4.覆盖原来的:

mv fortunes/data/* /usr/share/games/fortune/ #目录以自己的为准

5.安装cowsay

yum install cowsay

6.两个合用:

可选:修改登录提示为上面的东西

vim /etc/profile.d/cowsay.sh  #新增一个文件

重新登录可查看到效果

原文地址:https://www.cnblogs.com/Skrillex/p/7132288.html