你绝对想不到的有趣Linux命令

字体大小: 中小 标准 ->行高大小: 标准

1. sl 命令

sl是指“steam locomotive(蒸汽机车)”,你会看到一辆火车从屏幕右边开往左边。。。。。。

安装 $ sudo apt-get install sl
运行 $ sl

命令有 -alFe几个选项,

-a An accident seems to happen. You'll feel pity for people who cry for help.
-l shows little one.
-F It flies.
-e Allow interrupt by Ctrl+C.

 

可以给别人来个恶作剧,搞个关联,他一敲ls,不知道的肯定很有效果

$alias ls=sl

 

2. fortune 命令

输出一句话,有笑话,名言什么的 (还有唐诗宋词sudo apt-get install fortune-zh)

安装 $sudo apt-get install fortune

运行 $fortune

 

3. cowsay 命令

用ASCII字符打印牛,羊等动物,还有个cowthink,这个是奶牛想,那个是奶牛说,哈哈,差不多

安装 $sudo apt-get install cowsay

运行 $cowsay "I am not a cow, hahaha"

$cowsay -l 查看其它动物的名字,然后-f跟上动物名,如

$cowsay -f tux "坑爹啊"

还可以让cowsay说出fortune的内容,就像这样:

$fortune | cowsay

 

4. cmatrix 命令

这个很酷!《黑客帝国》那种矩阵风格的动画效果

安装 $ sudo apt-get install cmatrix

运行 $cmatrix

 

相关阅读

十个很少有人知道的 Linux 命令 - Part 2 http://www.linuxidc.com/Linux/2013-11/92847.htm

十个很少有人知道的 Linux 命令 - Part 3 http://www.linuxidc.com/Linux/2013-11/93061.htm

11个很少有人知道但很有用的Linux命令 http://www.linuxidc.com/Linux/2013-10/92095.htm

Linux命令之cd http://www.linuxidc.com/Linux/2013-05/83948.htm

Linux命令之cat http://www.linuxidc.com/Linux/2013-05/83947.htm

Linux命令之alias/unalias http://www.linuxidc.com/Linux/2013-05/83946.htm

Linux命令解析:su root和su -root http://www.linuxidc.com/Linux/2013-04/82564.htm

此文章由 http://www.ositren.com 收集整理 ,地址为: http://www.ositren.com/htmls/62549.html