啊 有趣的Linux

玩Linux其乐无穷…

命令:cmatrix

安装

1
2
3
4
5
brew install cmatrix
# Or
yum install cmatrix
# Or
apt-get install cmatrix

编译安装

1
2
3
4
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

输出

1
caoxl@cxllcdeMacBook-Pro % cmatrix

cmatrix

命令:sl (蒸汽机车)

安装

1
2
3
4
5
brew install sl
# Or
yum install sl
# Or
apt-get install sl

输出

1
caoxl@cxllcdeMacBook-Pro % sl

sl

安装

1
2
3
4
5
brew install oneko
# Or
yum install oneko
# Or
apt-get install oneko

命令:telnet

你可能很熟悉telnet。Telnet 是一个文本化的双向网络协议。这里不需要安装什么东西。你需要的就是一个Linux系统和一个连通的网络。

输出

1
telnet towel.blinkenlights.nl

telnet

命令:fortune/fortune-zh

试试你未知的运气,终端里有时也有好玩的。

安装

1
2
3
4
5
6
7
brew install fortune
# Or
yum install fortune
# Or
yum -y install fortune-mod
# Or
apt-get install fortune

fortune

中文包

1
2
git clone git@github.com:ruanyf/fortunes.git
mv fortunes/data/* /usr/share/games/fortune/

命令:rev(翻转)

它会把传递给它的的每个字符串都反过来

1
2
3
4
5
$ rev                                                                     
caoxl
lxoac
hello world
dlrow olleh

命令:Cowsay

一个在终端用ASCII码组成的小牛,这个小牛会说出你想要它说的话。

安装

1
2
3
4
5
brew install cowsay
# Or
yum install cowsay
# Or
apt-get install cowsay

输出

1
2
3
4
5
6
7
8
9
10
╭─caoxl@cxllcdeMacBook-Pro in ~
╰$ cowsay i love lc
___________
< i love lc >
-----------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||

如果用管道将‘fortune command’命令重定向到cowsay会怎样呢?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
caoxl$ fortune | cowsay
________________________________________
/ Talking Pinhead Blues: Oh, I LOST my \
| ``HELLO KITTY'' DOLL and I get BAD |
| reception on channel |
| |
| TWENTY-SIX!! |
| |
| Th'HOSTESS FACTORY is closin' down and |
| I just heard ZASU PITTS has been |
| |
| DEAD for YEARS.. (sniff) |
| |
| My PLATFORM SHOE collection was CHEWED |
| up by th' dog, ALEXANDER HAIG |
| |
| won't let me take a SHOWER 'til Easter |
| ... (snurf) |
| |
| So I went to the kitchen, but WALNUT |
| PANELING whup me upside mah HAID!! |
| |
\ (on no, no, no.. Heh, heh) /
----------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||

提示:‘|’是管道命令符。通常它是将一个命令的输出作为下一个命令的输入。在上面的例子中‘fortune’的输出作为‘cowsay’命令的输出。管道命令会经常用在脚本和程序编写中。

xcowsay

xcowsay是一个图形界面程序。它与cowsay类似只是以一种图形的方式来表达,可以说是X版本的cowsay。

1
2
3
4
5
brew install xcowsay
# Or
yum install xcowsay
# Or
apt-get install xcowsay

cowthink

cowthink是另一个命令。运行“cowthink Linux is sooo funny ”看看它与cowsay的不同吧。

1
2
3
4
5
6
7
8
9
caoxl$ cowthink linux is so funny
___________________
( linux is so funny )
-------------------
o ^__^
o (oo)\_______
(__)\ )\/\
||----w |
|| ||

命令: toilet

安装

1
2
3
4
5
brew install toilet
# Or
yum install toilet
# Or
apt-get install toilet

输出

1
2
3
4
5
6
7
caoxl@cxllcdeMacBook-Pro: ~ $ toilet tecmint

m " m
mm#mm mmm mmm mmmmm mmm m mm mm#mm
# #" # #" " # # # # #" # #
# #"""" # # # # # # # #
"mm "#mm" "#mm" # # # mm#mm # # "mm

更多

Powered by Hexo and Hexo-theme-hiker

Copyright © 2017 - 2022 Keep It Simple And Stupid All Rights Reserved.

访客数 : | 访问量 :