前言
推荐几个linux系统下几个没有用但是很好玩的命令。或许很多朋友没有注意,今天就来汇总下。
figlet 字符画
- 解释:figlet 可以将英文字符串以字符画的形式输出
- 安装命令:
yum install figlet -y
- 运行如下:
┌──(root㉿kali)-[~]
└─# figlet West2.cn
__ __ _ ____
\ \ / /__ ___| |_|___ \ ___ _ __
\ \ /\ / / _ \/ __| __| __) | / __| '_ \
\ V V / __/\__ \ |_ / __/ | (__| | | |
\_/\_/ \___||___/\__|_____(_)___|_| |_|
aafire 火焰
- 安装命令:
yum install aafire -y
- 运行如下:
aafire

fortune 随机句子
- 安装命令:
yum install fortune-mod
- 运行如下:
> fortune
We only acknowledge small faults in order to make it appear that we are
free from great ones.
-- La Rouchefoucauld
yes 重复输出一句话
- 语法:yes 命令重复输出一句话:
> yes hello,world
hello,world
hello,world
hello,world
sl 小火车
- 安装命令:
yum install -y sl
- 运行效果:
sl

cowsay 会说话的牛
- 安装命令:
yum install cowsay -y
- 运行效果:
cowsay "west2.cn"
____________
< west2.cn >
------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
// 查看支持的动物
> cowsay -l
//使用-f 参数切换小动物
> cowsay -f tux "我是一只小鸭子"
_________
< 我是一只小鸭子 >
---------
\
\
.--.
|o_o |
|:_/ |
// \ \
(| | )
/'\_ _/`\
\___)=(___/
cmatrix 黑客帝国
- 安装命令:
wget https://jaist.dl.sourceforge.net/project/cmatrix/cmatrix/1.2a/cmatrix-1.2a.tar.gz
tar -zxvf cmatrix-1.2a.tar.gz
cd cmatrix-1.2a
./configure && make && make install
- 运行效果:
cmatrix

asciiquarium 水族馆
- 安装命令:
yum install perl-Curses perl-ExtUtils-MakeMaker perl-Data-Dumper -y
cd /tmp
wget http://search.cpan.org/CPAN/authors/id/K/KB/KBAUCOM/Term-Animation-2.6.tar.gz
tar -zxvf Term-Animation-2.6.tar.gz
cd Term-Animation-2.6/
perl Makefile.PL && make && make test
make install
cp asciiquarium /usr/local/bin
chmod 0755 /usr/local/bin/asciiquarium
- 运行效果:
asciiquarium

asciiview 图片转换字符画
- asciiview 命令可以将任意图片转换成字符画的形式输出,安装方法如下:
sudo apt-get install aview imagemagick
asciiview hepburn.pen

hollywood好莱坞黑客的屏幕
- 安装命令:
sudo apt-get update
sudo apt-get install byobu hollywood
- 运行演示:
sudo apt-get install hollywood

ninvaders 太空入侵者
- 安装命令:
sudo apt-get install ninvaders
- 运行演示:
ninvaders

bastet 俄罗斯方块
- 安装命令:
sudo apt-get install bastet
- 演示效果:
bastet

总结:
看完以上的Linux命令教程,是不是奇怪的知识又增加了?有兴趣的小伙伴可以自己去尝试哦。
学习一下