L003Linux和androidNDK之linux好玩的命令

命令:sl (蒸汽機(jī)車)

你可能了解 ‘ls’ 命令,并經(jīng)常使用它來查看文件夾的內(nèi)容。但是,有些時候你可能會拼寫成 ‘sl’ ,這時我們應(yīng)該如何獲得一些樂趣而不是看見“command not found”呢?

安裝 sl

root@tecmint:~# apt-get install sl (In Debian like OS)

命令:fortune

試試你未知的運氣,終端里有時也有好玩的。

安裝 fortune

root@tecmint:~# apt-get install fortune (for aptitude based system)

factor

該談點兒關(guān)于Mathematics的了,這個命令輸出給定數(shù)字的所有因子。

命令:Cowsay

一個在終端用ASCII碼組成的小牛,這個小牛會說出你想要它說的話。

安裝Cowsay

sudo apt-get insatll xcowsay 

frank@frank-All-Series:~$ fortune  |cowsay
 ______________________________________
/ Your own qualities will help prevent \
\ your advancement in the world.       /
 --------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
frank@frank-All-Series:~$ 

命令:cmatrix

你可能看多好萊塢的電影‘黑客帝國’并陶醉于被賦予Neo的能看到在矩陣中任何事物的能力,或者你會想到一幅類似于‘Hacker’的桌面的生動畫面

toilet

while true; do echo "$(date '+%D %T' | toilet -f term -F border --gay)"; sleep 1; done

命令: aafire

在你的終端放一把火如何。把這個“aafire”敲到你的終端,不需要什么引號看看這神奇的一幕吧。按下任意鍵中指該程序。

安裝 aafire

root@tecmint:~# apt-get install libaa-bin

asciiquarium水族館

sudo  apt-get install libcurses-perl
wget http://search.cpan.org/CPAN/authors/id/K/KB/KBAUCOM/Term-Animation-2.4.tar.gz

frank@frank-All-Series:~/tmp$ tar  xf  Term-Animation-2.4.tar.gz 
frank@frank-All-Series:~/tmp$ cd  Term-Animation-2.4/

perl Makefile.PL && make && make test

cd  tmp
tar  xf  asciiquarium.tar.gz
sudo cp asciiquarium /usr/local/bin
sudo chmod 0755 /usr/local/bin/asciiquarium

$ sudo apt-get install libcurses-perl
$ cd /tmp
$ wget http://search.cpan.org/CPAN/authors/id/K/KB/KBAUCOM/Term-Animation-2.4.tar.gz
$ tar -zxvf Term-Animation-2.4.tar.gz
$ cd Term-Animation-2.4/
$ perl Makefile.PL && make && make test
$ sudo make install


fortune-zh |cowsay 
cowsay -f ghostbusters.cow unixmen
cowsay -f bud-frogs.cow Rajneesh
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

推薦閱讀更多精彩內(nèi)容