讓我們來一起學習一下linux裡好玩的命令
screenfetch:顯示系統、主題信息安裝使用:
sudoaptinstallscreenfetchscreenfetch
效果圖:
linux_logo:linux版本logo圖片及系統信息安裝使用:
sudoaptinstalllinuxlogolinux_logo
效果圖:
查看內置的logo列表:
linux_logo -f -L list Available Built-in Logos: Num Type Ascii Name Description 1 Classic Yes aix AIX Logo 2 Classic Yes bsd FreeBSD Logo 3 Banner Yes bsd_banner FreeBSD Logo 4 Classic Yes irix Irix Logo 5 Classic Yes openbsd OpenBSD Logo 6 Banner Yes openbsd_banner OpenBSD Logo 7 Banner Yes solaris The Default Banner Logos 8 Banner Yes banner-simp Simplified Banner Logo 9 Banner Yes banner The Default Banner Logo 10 Classic Yes classic-nodots The Classic Logo, No Periods 11 Classic Yes classic-simp Classic No Dots Or Letters 12 Classic Yes classic The Default Classic Logo 13 Classic Yes core Core Linux Logo 14 Banner Yes debian_banner_2 Debian Banner 2 15 Banner Yes debian_banner Debian Banner (white) 16 Classic Yes debian_old Debian Old Penguin Logos 17 Classic Yes debian Debian Swirl Logos 18 Classic Yes gnu_linux Classic GNU/Linux 19 Banner Yes mandrake_banner Mandrake(TM) Linux Banner 20 Banner Yes mandrake Mandrakelinux(TM) Banner 21 Banner Yes mandriva Mandriva(TM) Linux Banner 22 Banner Yes pld PLD Linux banner 23 Classic Yes raspi An ASCII Raspberry Pi logo 24 Banner Yes redhat RedHat Banner (white) 25 Banner Yes slackware Slackware Logo 26 Banner Yes sme SME Server Banner Logo 27 Banner Yes sourcemage_ban Source Mage GNU/Linux banner 28 Banner Yes sourcemage Source Mage GNU/Linux large 29 Banner Yes suse SUSE Logo 30 Banner Yes ubuntu Ubuntu Logo Do "linux_logo -L num" where num is from above to get the appropriate logo. Remember to also use -a to get ascii version.
接下來我們開始利用命令在終端循環打印logo:
foriin{1..30};dolinux_logo-f-L$i;sleep2;done
效果圖如下:
sl:蒸汽火車安裝使用:
sudoaptinstallslsl
ls命令用於查看文件夾的內容,而ls如果反著寫的話,sl就會輸出一台嘟嘟嘟的火車,如下圖所示:
注:當敲入LS時,此命令也會運行
fortune:幽默安裝使用:
sudoaptinstallfortunefortune
效果圖:
當然這都是英文的,如果需要它輸出中國的唐詩三百首,則:
sudoaptinstallfortune-zhfortune-zh
效果圖:
注:此時再敲入fortune回車,輸出的內容包括中、英文
cowsay:會說話的小牛安裝使用:
sudoaptinstallcowsay cowsay
效果圖:
接下來結合fortune和cowsay讓小牛說唐詩:
注:|是管道命令符,將一個命令的輸出作為下一個命令的輸入,經常用在腳本和程序編寫中
和此命令類似的還有xcowsay以及cowthink,在此不作詳細說明了
toilet安裝使用:
sudoaptinstalltoilettoilet
效果圖:
cmatrix:黑客帝國安裝使用:
sudoaptinstallcmatrixcmatrix
效果圖:
安裝使用:
sudoaptinstallaafireaafire
效果圖:
原文來自:http://os.51cto.com/art/201612/524448.htm
本文地址:http://www.linuxprobe.com/linux-interesting-cmd.html
http://www.bkjia.com/Linuxjc/1191954.html TechArticle