10 條真心有趣的 Linux 命令

來源:互聯網
上載者:User

10 條真心有趣的 Linux 命令

在終端工作是一件很有趣的事情。今天,我們將會列舉一些有趣得為你帶來歡笑的Linux命令。

1. rev

建立一個檔案,在檔案裡面輸入幾個單詞,rev命令會將你寫的東西反轉輸出到控制台。

  1. # rev <file name>

Selection_002

Selection_001

 

2. fortune

這個命令沒有被預設安裝,用apt-get命令安裝它,fortune命令會隨機顯示一些句子

  1. crank@crank-System:~$ sudoapt-get install fortune

Selection_003

利用fortune命令的_s 選項,他會限制一個句子的輸出長度。

  1. # fortune -s

Selection_004

 

3. yes
  1. #yes<string>

這個命令會不停列印字串,直到使用者把這進程給結束掉。

  1. #yes unixmen

Selection_005

 

4. figlet

這個命令可以用apt-get安裝,安裝之後,在/usr/share/figlet可以看到一些ascii字型檔。

  1. cd/usr/share/figlet
  1. #figlet -f <font><string>
  2. #figlet -f big.flf unixmen

Selection_006

#figlet -f block.flf  unixmen

Selection_007

當然,你也可以嘗試使用其他的選項。

 

5. asciiquarium

這個命令會將你的終端變成一個海洋館。

下載term animator:

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

安裝並且配置這個包:

  1. #tar-zxvf Term-Animation-2.4.tar.gz
  2. #cdTerm-Animation-2.4/
  3. # perl Makefile.PL &&make&&maketest
  4. #sudomake install

接著安裝下面這個包:

  1. #apt-get install libcurses-perl

下載並且安裝asciiquarium:

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

執行如下命令:

  1. # /usr/local/bin/asciiquarium

asciiquarium_1.1 : perl_008

 

6. bb
  1. #apt-get install bb
  2. # bb

看看會輸出什嗎?

Selection_009

 

7. sl

有的時候你可能把 ls 誤打成了 sl,其實 sl 也是一個命令,如果你打 sl的話,你會看到一個移動的火車頭

  1. #apt-get install sl
  1. # sl

Selection_012

 

8. cowsay

一個很常見的命令,它會用ascii顯示你想說的話。

  1. apt-get install cowsay
  1. # cowsay <string>

Selection_013

或者,你可以用其他的角色來取代預設角色來說這句話,這些角色都儲存在/usr/share/cowsay/cows目錄下

  1. #cd/usr/share/cowsay/cows
  1. cowsay -f ghostbusters.cow unixmen

Selection_014

或者

  1. # cowsay -f bud-frogs.cow Rajneesh

Selection_015

 

9. toilet

你沒看錯,這是個命令來的,他會將字串以彩色的ascii字串形式輸出到終端

  1. #apt-get install toilet
  1. # toilet --gay unixmen

Selection_016

  1. toilet -F border -F gay unixmen

Selection_020

  1. toilet -f mono12 -F metal unixmen

Selection_018

 

10. aafire

aafire能讓你的終端燃起來。

  1. #apt-get install libaa-bin
  1. # aafire

Selection_019

就這麼多,祝你們在Linux終端玩得開心哈!!!

via: http://www.unixmen.com/list-10-funny-linux-commands/

作者:Rajneesh Upadhyay 譯者:tnuoccalanosrep 校對:wxy

本文由 LCTT 原創編譯,Linux中國 榮譽推出

本文永久更新連結地址:

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.