Linux的10个经典彩蛋

发表于:2014-7-15 09:25

字体: | 上一篇 | 下一篇 | 我要投稿

 作者:有孚    来源:51Testing软件测试网

分享:
  拼写错误学习
  如果你想要用ls列出目录下的文件却敲成了sl,那你可能会想安装一下sl这个程序。
  在Ubuntu/Debian上面:
  sudo apt-get install sl
  在CentOS/Fedora上面:
  sudo yum install sl
  现在,如果你不小心敲成了sl,你一定会乐了:
sl
(  ) (@@) ( )  (@)  ()    @@    O     @     O     @
(@@@)
(    )
(@@@@)
(   )
====        ________                ___________
_D _|  |_______/        \__I_I_____===__|_________|
|(_)---  |   H\________/ |   |        =|___ ___|      _________________
/     |  |   H  |  |     |   |         ||_| |_||     _|                \___
|      |  |   H  |__--------------------| [___] |   =|
| ________|___H__/__|_____/[][]~\_______|       |   -|
|/ |   |-----------I_____I [][] []  D   |=======|____|______________________
__/ =| o |=-~~\  /~~\  /~~\  /~~\ ____Y___________|__|________________________
|/-=|___|=O=====O=====O=====O   |_____/~\___/          |_D__D__D_|  |_D__D__D
\_/      \__/  \__/  \__/  \__/      \_/               \_/   \_/    \_/   \
  会有一辆火车呼啸而过。
  cowsay和Fortune
  如果你想玩点简单脑残的,而apt那些牛又不能满足你,那你可以试试cowsay和fortune。
  在Ubuntu/Debian上:
  sudo apt-get install fortune cowsay
  在CentOS/Fedora上:
  sudo yum install fortune cowsay
  cowsay会用ASCII画一头牛出来,你输入什么,这牛就说什么。
  cowsay "hello, I'm a cow”
  __________________
  < hello, I'm a cow >
  ------------------
  \   ^__^
  \  (oo)\_______
  (__)\       )\/\
  ||----w |
  ||     ||
  fortune程序则会说一些语录,运程,笑话或者废话什么的,这些可以拿来传给cowsay程序:
cowsay "hello, I'm a cow”
________________________________________
/ Q: What looks like a cat, flies like a \
| bat, brays like a donkey, and          |
|                                        |
\ plays like a monkey? A: Nothing.       /
----------------------------------------
\   ^__^
\  (oo)\_______
(__)\       )\/\
||----w |
||     ||
  如果你对牛不太感冒,那么还可以换成别的角色:
fortune | cowsay -f tux
_____________________________________
/ You never know how many friends you \
| have until you rent a house on the  |
\ beach.                              /
-------------------------------------
\
\
.--.
|o_o |
|:_/ |
//   \ \
(|     | )
/'\_   _/`\
\___)=(___/
  想知道cowsay都支持哪些角色,输入下:
cowsay -l
Cow files in /usr/share/cowsay/cows:
apt beavis.zen bong bud-frogs bunny calvin cheese cock cower daemon default
dragon dragon-and-cow duck elephant elephant-in-snake eyes flaming-sheep
ghostbusters gnu head-in hellokitty kiss kitty koala kosh luke-koala
mech-and-cow meow milk moofasa moose mutilated pony pony-smaller ren sheep
skeleton snowman sodomized-sheep stegosaurus stimpy suse three-eyes turkey
turtle tux unipony unipony-smaller vader vader-koala www
  我个人是比较喜欢剑龙:
fortune | cowsay -f stegosaurus
_________________________________________
/ Q: What lies on the bottom of the ocean \
\ and twitches? A: A nervous wreck.       /
-----------------------------------------
\                             .       .
\                           / `.   .' "
\                  .---.  <    > <    >  .---.
\                 |    \  \ - ~ ~ - /  /    |
_____          ..-~             ~-..-~
|     |   \~~~\.'                    `./~~~/
---------   \__/                        \__/
.'  O    \     /               /       \  "
(_____,    `._.'               |         }  \/~~~/
`----.          /       }     |        /    \__/
`-.      |       /      |       /      `. ,~~|
~-.__|      /_ - ~ ^|      /- _      `..-'
|     /        |     /     ~-.     `-. _  _  _
|_____|        |_____|         ~ - . _ _ _ _ _>
  总结
  这篇文章不会传授你什么重要的知识或者提高你的Linux水平啥的,就是希望能你能稍微放松一下,有可能的话多探索一下你的系统。
33/3<123
2023测试行业从业人员调查问卷已开启,千元大奖正在等你~

关注51Testing

联系我们

快捷面板 站点地图 联系我们 广告服务 关于我们 站长统计 发展历程

法律顾问:上海兰迪律师事务所 项棋律师
版权所有 上海博为峰软件技术股份有限公司 Copyright©51testing.com 2003-2023
投诉及意见反馈:webmaster@51testing.com; 业务联系:service@51testing.com 021-64471599-8017

沪ICP备05003035号

沪公网安备 31010102002173号