【linux有趣命令集】:
- cmatrix(像黑客帝国里面的代码雨)
wget http://www.asty.org/cmatrix/dist/cmatrix-1.2a.tar.gz
tar xvf cmatrix-1.2a.tar.gz
cd cmatrix-1.2a
yum install ncurses-devel
./configure && make && make install
使用方法:[]里是附带的选项
cmatrix [-abBflohnsVx] [-C color]
例如 cmatrix –b效果如下:
cmatrix -b -C red 把颜色变成红色,效果如下:
选项
-a :异步滚动(默认)
-b :随机粗体
-B :全部粗体
-f :force the linux $TERM type to be on
求大神解释
-l :Linux mode (sets "matrix.fnt" font in console)
求大神解释
-o :使用旧风格滚动(不好看)
-h :获得帮助信息
-n :不使用粗体(默认)
-s :"Screensaver" mode,exits on first keystroke
求大神解释
-x :X window 模式,好像就是显示的符号不一样
-V :显示版本信息
-u :刷新频率,0-9,也就是滚动的快慢
-C :显示的颜色,支持green(默认),red,blue,white,yellow,cyan,
magenta and black
在运行的状态下,直接按q,即可退出程序
- sl(大家经常用到ls命令,但是sl又有多少人知道呢)
sudo yum install sl
直接输入sl使用,终端就会出现一辆从右到左的火车,效果如下:
- aafire(终端出现一团火)
sudo apt-get install libaa-bin
执行aafire,效果如下:
- oneko(终端出现一只小动物,随着你的鼠标移动奔跑)
sudo apt-get install oneko
执行oneko,效果如下:
还可以增加选项:
-position 坐标 :指定X和Y来调整猫相对老鼠的位置
-rv:将前景色和背景色对调
-fg 颜色 : 前景色 (比如 oneko -dog -fg red)。
-bg 颜色 : 背景色 (比如 oneko -dog -bg green)。
- fortune(显示一条信息)
sudo apt-get install fortune
执行fortune,会随机出现一条信息或名言,效果如图:
- figlet(将单词用符号拼凑出来并显示在终端)
sudo apt-get install figlet
- cowsay(让动物说话)
sudo apt-get install cowsay
执行cowsay “linux is fun”,效果如图:
默认是一头牛,可以通过参数让它显示其他的东西
先查看有哪些东西: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
可以看到上面有很多可以选,比如选个milk
执行命令cowsay -f milk “Do youwant to drink?”,效果如图:
- asciiquarium(把终端变成一个水族馆)
wget http://www.robobunny.com/projects/asciiquarium/asciiquarium.tar.gz
tar -zxvf asciiquarium.tar.gz
cd asciiquarium_1.1/
cp asciiquarium /usr/local/bin
chmod 0755 /usr/local/bin/asciiquarium
执行命令asciiquarium,效果如图:
- toilet
sudo apt-get install toilet
这是个命令来的,他会将字符串以彩色的ascii字符串形式输出到终端