拼写错误学习
如果你想要用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水平啥的,就是希望能你能稍微放松一下,有可能的话多探索一下你的系统。