
在終端工作是一件很有趣的事情。今天,我們将會列舉一些有趣得為你帶來歡笑的linux指令。
<a target="_blank"></a>
建立一個檔案,在檔案裡面輸入幾個單詞,rev指令會将你寫的東西反轉輸出到控制台。
<code># rev <file name></code>
selection_002
selection_001
這個指令沒有被預設安裝,用apt-get指令安裝它,fortune指令會随機顯示一些句子
<code>crank@crank-system:~$ sudo apt-get install fortune</code>
selection_003
利用fortune指令的 -s 選項,他會限制一個句子的輸出長度。
<code># fortune -s</code>
selection_004
<code># yes <string></code>
這個指令會不停列印字元串,直到使用者把這程序給結束掉。
<code># yes unixmen</code>
selection_005
這個指令可以用apt-get安裝,安裝之後,在/usr/share/figlet可以看到一些ascii字型檔案。
<code>cd /usr/share/figlet</code>
<code>#figlet -f <font> <string></code>
<code>#figlet -f big.flf unixmen</code>
selection_006
selection_007
當然,你也可以嘗試使用其他的選項。
這個指令會将你的終端變成一個海洋館。
下載下傳term animator:
<code># wget http://search.cpan.org/cpan/authors/id/k/kb/kbaucom/term-animation-2.4.tar.gz</code>
安裝并且配置這個包:
<code># tar -zxvf term-animation-2.4.tar.gz</code>
<code># cd term-animation-2.4/</code>
<code># perl makefile.pl && make && make test</code>
<code># sudo make install</code>
接着安裝下面這個包:
<code># apt-get install libcurses-perl</code>
下載下傳并且安裝asciiquarium:
<code># wget http://www.robobunny.com/projects/asciiquarium/asciiquarium.tar.gz</code>
<code># tar -zxvf asciiquarium.tar.gz</code>
<code># cd asciiquarium_1.0/</code>
<code># cp asciiquarium /usr/local/bin/</code>
執行如下指令:
<code># /usr/local/bin/asciiquarium</code>
asciiquarium_1.1 : perl_008
<code># apt-get install bb</code>
<code># bb</code>
看看會輸出什麼?
selection_009
有的時候你可能把 ls 誤打成了 sl,其實 sl 也是一個指令,如果你打 sl的話,你會看到一個移動的火車頭
<code># apt-get install sl</code>
<code># sl</code>
selection_012
一個很常見的指令,它會用ascii顯示你想說的話。
<code>apt-get install cowsay</code>
<code># cowsay <string></code>
selection_013
或者,你可以用其他的角色來取代預設角色來說這句話,這些角色都存儲在/usr/share/cowsay/cows目錄下
<code># cd /usr/share/cowsay/cows</code>
<code>cowsay -f ghostbusters.cow unixmen</code>
selection_014
或者
<code># cowsay -f bud-frogs.cow rajneesh</code>
selection_015
你沒看錯,這是個指令來的,他會将字元串以彩色的ascii字元串形式輸出到終端
<code># apt-get install toilet</code>
<code># toilet --gay unixmen</code>
selection_016
<code>toilet -f border -f gay unixmen</code>
selection_020
<code>toilet -f mono12 -f metal unixmen</code>
selection_018
aafire能讓你的終端燃起來。
<code># apt-get install libaa-bin</code>
<code># aafire</code>
selection_019
就這麼多,祝你們在linux終端玩得開心哈!!!
本文來自雲栖社群合作夥伴“linux中國”,原文釋出日期:2015-09-22