就如幸运饼干一般,这个小软件可以在输入fortune
命令之后,你会得到一条人生箴言或者谚语
[root@iZo7e61fz42ik0Z game]# yum -y install fortune-mod
[root@central-machine /root]#fortune
Nature abhors a virgin -- a frozen asset.
-- Clare Booth Luce
[root@central-machine /root]#fortune
Yow! Now I get to think about all the BAD THINGS I did to a BOWLING
BALL when I was in JUNIOR HIGH SCHOOL!
[root@central-machine /root]#fortune
Suddenly, Professor Liebowitz realizes he has come to the seminar
without his duck ...
由于都是英文的,不过我们可以使用一些中文穿插在其中:
[root@iZo7e61fz42ik0Z game]# git clone https://github.com/ruanyf/fortunes.git
[root@iZo7e61fz42ik0Z game]# mv fortunes/data/* /usr/share/games/fortune/
mv: overwrite ‘/usr/share/games/fortune/fortunes’? y
mv: overwrite ‘/usr/share/games/fortune/fortunes.dat’? y
效果 :