人生苦短,我用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

以上!命令行