歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux命令 >> 20個Linux命令及Linux終端的趣事

20個Linux命令及Linux終端的趣事

日期:2017/2/28 10:01:12   编辑:Linux命令
Linux命令

玩Linux其樂無窮!哈哈。不相信。記住我的話,在文章結尾時你就會相信Linux確實好玩了。

20 Linux Funny Commands

1. 命令:sl (蒸汽機車)

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

安裝 sl

  1. root@tecmint:~# apt-get install sl (In Debian like OS)
  2. root@tecmint:~# yum -y install sl (In Red Hat like OS)

輸出

  1. root@tecmint:~# sl

sl command

當你敲入的是‘LS‘而不是’ls‘時,這個命令也會運行。

2. 命令:telnet

非也!非也!!這可不像它平常那樣復雜。你可能很熟悉telnet。Telnet 是一個文本化的雙向網絡協議。這裡不需要安裝什麼東西。你需要的就是一個Linux系統和一個連通的網絡。

  1. root@tecmint:~# telnet towel.blinkenlights.nl

telnet command

3. 命令:fortune

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

安裝 fortune

  1. root@tecmint:~# apt-get install fortune (for aptitude based system)
  2. root@tecmint:~# yum install fortune (for yum based system)
  3. root@tecmint:~# fortune
  4. You're not my type. For that matter, you're not even my species!!!
  5. Future looks spotty. You will spill soup in late evening.
  6. You worry too much about your job. Stop it. You are not paid enough to worry.
  7. Your love life will be... interesting.

4. 命令:rev(翻轉)

它會把傳遞給它的的每個字符串都反過來,是不是很好玩。

  1. root@tecmint:~# rev
  2. 123abc
  3. cba321
  4. xuniL eb ot nrob
  5. born to be Linux

5. 命令:factor

該談點兒關於Mathematics的了,這個命令輸出給定數字的所有因子。

  1. root@tecmint:~# factor
  2. 5
  3. 5: 5
  4. 12
  5. 12: 2 2 3
  6. 1001
  7. 1001: 7 11 13
  8. 5442134
  9. 5442134: 2 2721067

Copyright © Linux教程網 All Rights Reserved