本文最后更新于 2024-03-25,欢迎来到我的Blog! https://www.zpeng.site/

LINUX命令之asciiquarium水族馆

1.首先安装Term-Animation包

1. wget http://search.cpan.org/CPAN/authors/id/K/KB/KBAUCOM/Term-Animation-2.4.tar.gz
2. tar xf Term-Animation-2.4.tar.gz 
3. cd Term-Animation-2.4/

2.下载 perl-Curses和perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker软件并安装

1. yum install perl-Curses.x86_64  -y
2. yum install perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker  -y
3.  cd /root/Term-Animation-2.4/  && perl Makefile.PL
4. make
5. make install

3.然后安装asciiquarium

1. wget http://www.robobunny.com/projects/asciiquarium/asciiquarium.tar.gz
2. tar -zxvf asciiquarium.tar.gz
3. cd asciiquarium_1.1/
4. cp asciiquarium /usr/local/bin
5. chmod +x /usr/local/bin/asciiquarium

4. 之后输入asciiquarium就会出现水族馆了

  • 效果图

image-ksfm.png

5.其它

  • r:重绘动画
  • p:暂停/播放动画
  • q:退出程序