成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

Linux命令學習神器!命令看不懂直接給你解釋!

系統 Linux
今天給大家推薦一款有趣而實用學習神器 — kmdr,讓你解鎖 Linux 學習新姿勢。

 [[383166]]

大家都知道,Linux 系統有非常多的命令,而且每個命令又有非常多的用法,想要全部記住所有命令的所有用法,恐怕是一件不可能完成的任務。

一般情況下,我們學習一個命令時,要么直接百度去搜索它的用法,要么就直接用 man 命令去查看守冗長的幫助手冊。這兩個都可以實現我們的目標,但有沒有更簡便的方式呢?

答案是必須有的!今天給大家推薦一款有趣而實用學習神器 — kmdr,讓你解鎖 Linux 學習新姿勢。

kmdr 工具最大的亮點就是,如果有一個長串命令你看不懂它的用法及意義,它將直接分模塊給你詳細解釋!這個功能真的是非常實用,因為我們在網上或書上難免會看到各種各樣的命令,如果你看不懂,那將永遠留下疑惑。而這個工具就像老師一樣,按模塊一個個告訴你命令各個部分的用法及意義,讓你一目了然!

kmdr 收納了非常多的 CLI 命令解釋,例如常見的 ansible, conda, docker, git, go, kubectl, mongo, mysql, npm, ruby gems, vagrant 等等,不僅如此,那些 bash 內置命令 它都能為你解釋,非常給力!

不管你是哪個領域的程序員,kmdr 都能最大限度地為你提供 CLI 命令學習幫助。

  •  Bash Shell 命令(如 echo,export,cd)
  •  容器(如 Docker,kubectl)
  •  版本控制(如 Git)
  •  數據庫服務器和客戶端(如 mysql,mongod)
  •  部署/云(如 now cloud)
  •  文件和存檔工具(如 zip,tar)
  •  媒體(如 ffmpeg,youtube-dl)
  •  網絡/通訊(如 netstat,nmap,curl)
  •  包管理器(如 dpkg,pip)
  •  編程語言/運行時環境/編譯器(如 go,python,node,gcc)
  •  系統管理 /監控(如 crontab,top)
  •  文字處理(如 awk,sed)
  •  文本編輯器(如 nano,vim)
  •  其他(如 openssl,bash,bash64)

這個鏈接里可以查看完整的支持列表:https://github.com/ediardo/kmdr-cli#supported-programs)

安裝 Kmdr CLI

kmdr 是用 Nodejs 編寫的免費開源工具,需要 Nodejs 版本 8.x 或更高版本才能運行,需要大家先準備好運行環境。

安裝好 Nodejs 之后,使用 Npm 軟件包管理器安裝  kmdr: 

  1. $ npm install kmdr@latest --global 

不想安裝 Nodejs 這么麻煩?沒關系,這里有一個網站可以讓你在 web 瀏覽器直接使用 kmdr ↓↓  

http://demo.kmdr.sh/

使用 Kmdr 在終端中顯示 CLI 命令說明

下面我們通過一條復雜點的命令作為例子,來看看 kmdr 究竟有多強! 

  1. $ history | awk '{print $2}' | sort | uniq -c | sort -nr | head -5 

首先,運行下面的命令,讓 kmdr 進入解釋狀態: 

  1. $ kmdr explain 

接著,輸入我們上面的示例命令,然后按 ENTER 鍵: 

  1. ? Enter your command: history | awk '{print $2}' | sort | uniq -c | sort -nr | head -5  
  2. history  
  3. With no options, display the command history list with line numbers.  
  4.  
  5. A pipe serves the sdout of the previous command as input (stdin) to the next one  
  6. awk  
  7. pattern scanning and processing language  
  8. {print $2}  
  9. An argument  
  10.  
  11. A pipe serves the sdout of the previous command as input (stdin) to the next one  
  12. sort  
  13. Sort lines of text files  
  14.  
  15. A pipe serves the sdout of the previous command as input (stdin) to the next one  
  16. uniq  
  17. Report or omit repeated lines  
  18. -c, --count  
  19. Prefix lines by the number of occurrences  
  20.  
  21. A pipe serves the sdout of the previous command as input (stdin) to the next one  
  22. sort  
  23. Sort lines of text files  
  24. -n, --numeric-sort  
  25. Compare according to string numerical value  
  26. -r, --reverse 
  27.  Reverse the result of comparisons  
  28.  
  29. A pipe serves the sdout of the previous command as input (stdin) to the next one  
  30. head  
  31. Output the first part of files  
  32. -5  
  33. An argument  
  34. 🤖 Did we help you better understand this command? (Use arrow keys)  
  35. ❯ Skip & Exit   
  36. ──────────────  
  37. Yes   
  38. No 

可以看到 kmdr 這個命令的強大之處,它將那條復雜命令中每個部分的解釋都給你列出來了,讓你一目了然,一看就懂!

如果一個長串復雜命令里面包含了多個子命令,kmdr 也可以一個個為你解釋。

還可以解釋具有分組選項的命令。 

  1. $ kmdr explain  
  2. ? Enter your command: rsync -avz --exclude 'liangxu' dir1/ dir2/  
  3. rsync  
  4. A fast, versatile, remote (and local) file-copying tool  
  5. -a, --archive  
  6. This is equivalent to -rlptgoD.  
  7. -v, --verbose  
  8. This option increases the amount of information you are given during the transfer.  
  9. -z, --compress  
  10. With this option, rsync compresses the file data as it is sent to the destination machine,which reduces the amount of data being transmitted -- something that is useful over a slow connection. 
  11. --exclude  
  12. This option is a simplified form of the --filter option that defaults to an exclude rule anddoes not allow the full rule-parsing syntax of normal filter rules. 
  13. liangxu  
  14. An argument  
  15. dir1/  
  16. An argument  
  17. dir2/  
  18. An argument  
  19. 🤖 Did we help you better understand this command? (Use arrow keys)  
  20. ❯ Skip & Exit   
  21. ──────────────  
  22. Yes   
  23. No 

總結

個人認為,查看 CLI 命令的幫助文檔,一來其內容多而長,二來仔細去找會浪費時間和精力。而 kmdr 只要你輸入你不懂的命令,直接就給你整明白,難道它不香嗎?大家快點去試試吧。 

 

責任編輯:龐桂玉 來源: Linux學習
相關推薦

2022-02-07 09:05:00

GitHub功能AI

2019-12-09 08:29:26

Netty架構系統

2022-12-12 07:40:36

服務器項目Serverless

2023-06-30 08:01:04

Reactuse關鍵詞

2022-07-26 14:38:08

JavaScriptWeb安全自動化

2021-12-09 11:59:49

JavaScript前端提案

2022-06-16 14:07:26

Java代碼代碼review

2020-03-30 16:45:06

代碼看不懂

2024-02-27 18:09:22

Linux命令glow

2021-12-24 10:15:22

Linux命令lsof

2015-07-28 10:31:48

2020-03-06 11:30:08

JavaGitHub編程

2014-03-12 09:25:33

產品經理Startup

2017-09-19 15:45:39

2020-11-06 08:36:04

UI設計規范iOS

2013-07-08 10:49:03

程序員代碼看懂代碼

2020-09-21 13:06:58

TikTok網絡安全隱私

2014-08-05 11:38:57

linux

2017-06-16 09:22:22

數據結構算法鏈表

2019-11-18 14:45:13

代碼開發工具
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 国产在线a | 欧美一区在线视频 | 激情国产| 亚洲视频www | 久热m3u8| 欧美激情免费在线 | 欧美一区二区三区日韩 | 日韩三级在线观看 | 国产高清视频在线观看播放 | 亚洲福利一区二区 | 免费在线看黄视频 | 本道综合精品 | 91精品国产91久久久久游泳池 | 九九看片| 羞羞视频免费在线观看 | 午夜一级大片 | 精品久久久久久久久久久久久久 | 精品伊人 | 高清国产午夜精品久久久久久 | 欧美日韩精品一区二区三区四区 | 久久这里有精品 | 伊人精品 | 中文字幕加勒比 | 国产免费av在线 | 色网站在线 | 成人亚洲网 | 久久免费视频1 | 亚洲精品在线免费观看视频 | 久久99精品久久久久久 | 精品日韩一区 | 看片国产 | 国产精品久久久久永久免费观看 | 羞羞在线观看视频 | 九九热最新地址 | 91伦理片| 91福利在线观看视频 | 国产精品久久a | 国产aa | 99视频在线播放 | 久久久久成人精品亚洲国产 | 天天看天天爽 |