前言
就如幸运饼干一般,这个小软件可以在输入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
效果 :


本文介绍了如何在Linux系统上安装并使用Fortune软件,通过简单的命令行操作即可获取智慧箴言或谚语,增添日常生活的趣味性。此外,还提供了如何添加中文内容的方法,使软件更具个性化。
2万+

被折叠的 条评论
为什么被折叠?



