人生苦短,我用tldr


在這裏插入圖片描述
對於程序員來講,長時間不使用某些命令不免會有生疏,此時若是使用man命令可能會讓你崩潰,由於文檔實在是Too Looooong。那麼有沒有解決方案呢?其中比較有名的就是tldr。python

▍tldr是什麼

(chiefly Internet slang) Initialism of too long; didn’t read. Used to indicate that one did not read a (long) text, or to introduce a short summary of an overly long text.
--- wiki

tldr=Too Long; Didn't Read,它簡化了煩瑣的man指令幫助文檔,僅列出經常使用的該指令的使用方法。相比較man給出完整的幫助文檔而言,大多數狀況下,給出幾個指令的使用demo可能正是咱們想要的。舉個例子:git

這是使用man python查詢python的結果:
在這裏插入圖片描述
這是使用tldr python查看python經常使用命令的方法:
在這裏插入圖片描述
能夠看到,tldr更加親民一些。若是你是一個命令行新手,或者長時間不用命令行有些生疏,或者有些指令晦澀難記,那麼tldr很是適合你,能夠大大提升生產力!程序員

▍tldr如何安裝

能夠使用不一樣的客戶端來進行安裝,如下僅列出經常使用的安裝方法github

Node.js client: npm install -g tldr
Python clients: pip install tldr

若是使用的Mac,能夠直接brew install tldr進行安裝。npm

固然,除了tldr還有其餘的解決方案spa

https://github.com/srsudar/eg
https://github.com/cheat/cheat

以上!命令行