在终端工作是一件很有趣的事情。今天,我们将会列举一些有趣得为你带来欢笑的Linux命令。
1. rev
创建一个文件,在文件里面输入几个单词,rev命令会将你写的东西反转输出到控制台。
# rev <file name>


2. fortune
这个命令没有被默认安装,用apt-get命令安装它,fortune命令会随机显示一些句子
crank@crank-System:~$ sudo apt-get install fortune

利用fortune命令的_s 选项,他会限制一个句子的输出长度。
# fortune -s

3. yes
# yes <string>
这个命令会不停打印字符串,直到用户把这进程给结束掉。
# yes unixmen

4. figlet
这个命令可以用apt-get安装,安装之后,在/usr/share/figlet可以看到一些ascii字体文件。
cd /usr/share/figlet
#figlet -f <font> <string>
#figlet -f big.flf unixmen

figlet -f block.flf unixmen

当然,你也可以尝试使用其他的选项。
5. asciiquarium
这个命令会将你的终端变成一个海洋馆。
下载term animator:
# wget http://search.cpan.org/CPAN/authors/id/K/KB/KBAUCOM/Term-Animation-2.4.tar.gz
安装并且配置这个包:
# tar -zxvf Term-Animation-2.4.tar.gz
# cd Term-Animation-2.4/
# perl Makefile.PL && make && make test
# sudo make install
接着安装下面这个包:
# apt-get install libcurses-perl
下载并且安装asciiquarium:
# wget http://www.robobunny.com/projects/asciiquarium/asciiquarium.tar.gz
# tar -zxvf asciiquarium.tar.gz
# cd asciiquarium_1.0/
# cp asciiquarium /usr/local/bin/
执行如下命令:
# /usr/local/bin/asciiquarium

6. bb
# apt-get install bb
# bb
看看会输出什么?

7. sl
有的时候你可能把 ls 误打成了 sl,其实 sl 也是一个命令,如果你打 sl的话,你会看到一个移动的火车头
# apt-get install sl
# sl

8. cowsay
一个很常见的命令,它会用ascii显示你想说的话。
apt-get install cowsay
# cowsay <string>

或者,你可以用其他的角色来取代默认角色来说这句话,这些角色都存储在/usr/share/cowsay/cows目录下
# cd /usr/share/cowsay/cows
cowsay -f ghostbusters.cow unixmen

或者
# cowsay -f bud-frogs.cow Rajneesh

9. toilet
你没看错,这是个命令来的,他会将字符串以彩色的ascii字符串形式输出到终端
# apt-get install toilet
# toilet --gay unixmen

toilet -F border -F gay unixmen

toilet -f mono12 -F metal unixmen

10. aafire
aafire能让你的终端燃起来。
# apt-get install libaa-bin
# aafire

就这么多,祝你们在Linux终端玩得开心哈!!!
via: http://www.unixmen.com/list-10-funny-linux-commands/
作者:Rajneesh Upadhyay
译者:tnuoccalanosrep
校对:wxy
网友评论