最有趣的linux命令玩法20条总结

1. sl 命令

你会看到一辆火车从屏幕右边开往左边……

安装

$ sudo apt-get install sl

命令有 -a l F e 几个选项,

-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.

2.moo

root@hsz:~# apt-get moo

3.首先先安装aptitude

root@hsz:~# apt-get install aptitude

197  aptitude moo

  198  aptitude moo -v

  199  aptitude moo -vv

  200  aptitude moo -vvv

  201  aptitude moo -vvvv

  202  aptitude moo -vvvvv

4.两个连接的聊天

5.安装彩色的字体:lolcat

  250  apt-get install ruby

  251  ruby -v

  253  cd /usr/games/

  254  wget https://github.com/busyloop/lolcat/archive/master.zip

  255  unzip master.zip

  256  cd lolcat-master/bin

  257  gem install lolcat

  258  lolcat --version

  259  lolcat -h

260  ps | lolcat

 261  date | lolcat

262  man cmatrix | lolcat

6.figlet 、toilet命令

艺术字生成器,由ASCII字符组成,把文本显示成标题栏。此外还有banner这个命令

安装

$sudo apt-get install figlet

$sudo apt-get install toilet

运行

$figlet fuck you !

$toilet i love you

7.使用cmatrix正确的装逼

ubuntu

首先安装cmatrix

#apt-get install cmatrix

  236  man cmatrix | lolcat

  237  apt-get install lolcat

  238  apt-get autoremove

  239  apt-get install lolcat

  240  man cmatrix | lolcat

  241  cd /usr/games/lolcat

  242  cd /usr/games/

  243  ls

  244  apt-get install lolcat

  245  mkdir lolcat

然后安装lolcat

 

-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,即可退出程序。

在运行状态下,按数字0-9可以改变滚动的速度哦!

最后可以用cmatrix -b 装逼

 Usage: cmatrix -[abBfhlsVx] [-u delay] [-C color]

 

 

root@hsz:/hsz# cmatrix -b -C yellow

root@hsz:/usr/games# cmatrix -b -C red

root@hsz:~# cmatrix -b -C green     //等等

 Valid colors are green, red, blue, white, yellow, cyan, magenta and black.

Centos:

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

8.Cowsay

#apt install cowsay    //安装这个包

如果显示

root@hsz:/usr/games# fortune | cowsay

/usr/bin/env: node: No such file or directory

Command 'fortune' is available in '/usr/games/fortune'

The command could not be located because '/usr/games' is not included in the PATH environment variable.

fortune: command not found

那么是因为环境变量没有配置好:

root@hsz:/# vim /etc/profile   //里面最后一行加入:export PATH="/usr/games:$PATH"

root@hsz:/# source /etc/profile

这样就可以使用了。

如:#fortune | cowsay

root@hsz:/# cowthink today is nice!

root@hsz:/# cowsay srsly dude, why?

 

 

还有很多操作

cowsay -f tux "坑爹啊"

9.山羊

 #apt-get install apt-build   //先安装,中间会出现一些设置,一般默认

#apt-build moo   

10.linux字符组成的logo

#apt-get install linuxlogo     //先安装

# linuxlogo

#linuxlogo -l    //只有一个logo,没有别的

logo还有很多操作

11.一些彩色的字

# figlet I Love Temint | lolcat

#toilet  I Love Temint | lolcat

# cowsay -f gnu "Temint" is the best Linux Resource Available online | lolcat

12.一只小老鼠追着鼠标oneko

#apt-get install oneko     //先安装,然后只能去系统桌面执行

#oneko

13.眼睛xeyes

不用安装什么直接运行:

#xeyes

14. yes 命令

输出无穷无尽的字符,按ctrl+c结束,如

$yes 我很NB

15. cal 9 1752

cal是打印日历,不过这个是很奇葩的一个月。

16.fortune 命令随机名言诗句

## fortune

16.高大上仪表盘blessed-contrib

sudo apt-get install npm
sudo apt install nodejs-legacy
git clone https://github.com/yaronn/blessed-contrib.git
cd blessed-contrib
npm install
node ./examples/dashboard.js

高大上黑客仪表盘

17.高大上仪表盘hollywood

Dustin Kirkland 利用一个长途飞行的时间,编写了这个炫酷、有趣但也没什么实际作用的软件。

在其它Linux发行版中,可以通过以下命令安装并运行。 

sudo apt-add-repository ppa:hollywood/ppa
sudo apt-get install hollywood
sudo apt-get install byobu
hollywood

18.ASCII艺术框:box命令

sudo apt-get install boxes
echo "Tongji Univerisity" | boxes
echo "Tongji Univerisity" | boxes -d dog
fortune | boxes -d cat | lolcat

# fortune | boxes -d mouse | lolcat 等

19.燃起字符串大火aafire

sudo apt-get install libaa-bin
在命令行界面输入:

aafire

然后输入 aafire,即可看到效果 

20.图片转字符串

这条命令在树莓派上运行会出问题,建议在云主机或虚拟机上运行。

sudo apt-get install aview imagemagick
asciiview luffy.jiff

 

猜你喜欢

转载自blog.csdn.net/qq_24036403/article/details/95197650