
▍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可能正是我们想要的。举个例子:
这是使用man python查询python的结果:


▍tldr如何安装
可以使用不同的客户端来进行安装,以下仅列出常用的安装方法
Node.js client: npm install -g tldr
Python clients: pip install tldr
如果使用的Mac,可以直接brew install tldr进行安装。
当然,除了tldr还有其他的解决方案
https://github.com/srsudar/eg
https://github.com/cheat/cheat
以上!