Linux命令行学习神器 TLDR

一般我们要记住很多的shell 命令

但是呢? 好多都记不住,而且命令还上还要加 各种的参数

man命令?

看起来一脸懵逼?还是不知道怎么用?

让我给你介绍下 tldr 命令

例如我想查询 curl 的用法

Python
☁ ~ tldr curl
1
2
& #x2601;  ~  tldr curl
 

怎么样 查询结果一目了然

Python
☁ ~ tldr -h usage: tldr [-h] [-u] [-o {linux,osx,sunos}] [-s SOURCE] [-c] Python command line client for tldr optional arguments: -h, --help show this help message and exit -u, --update_cache Update the cached commands -o {linux,osx,sunos}, --os {linux,osx,sunos} Override the operating system [linux, osx, sunos] -s SOURCE, --source SOURCE Override the default page source -c, --color Override color stripping ☁ ~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
& #x2601;  ~  tldr -h
usage : tldr [ - h ] [ - u ] [ - o { linux , osx , sunos } ] [ - s SOURCE ] [ - c ]
 
Python command line client for tldr
 
optional arguments :
   - h , -- help              show this help message and exit
   - u , -- update_cache      Update the cached commands
   - o { linux , osx , sunos } , -- os { linux , osx , sunos }
                         Override the operating system [ linux , osx , sunos ]
   - s SOURCE , -- source SOURCE
                         Override the default page source
   - c , -- color           Override color stripping
& #x2601;  ~
 

如何安装呢?

tldr有很多种语言版本,安装也很简单,各种包管理工具都支持。

安装方式如下

C++ client

Python
$ brew install tldr-pages/tldr/tldr
1
2
$ brew install tldr - pages / tldr / tldr
 

Crystal client

Python
$ brew install porras/tap/tlcr
1
2
$ brew install porras / tap / tlcr
 

Go client

Python
$ go get github.com/pranavraja/tldr (or platform binaries)
1
2
$ go get github . com / pranavraja / tldr ( or platform binaries )
 

Node.js client

Python
$ npm install -g tldr
1
2
$ npm install - g tldr
 

Perl5 client

Python
$ cpanm App::tldr
1
2
$ cpanm App :: tldr
 

Python clients

tldr-python-client

Python
$ pip install tldr
1
2
$ pip install tldr
 

tldr.py

Python
$ pip install tldr.py
1
2
$ pip install tldr . py
 

Ruby client

Python
$ gem install tldrb
1
2
$ gem install tldrb
 

Bash client

Python
https://github.com/raylee/tldr
1
2
https : / / github . com / raylee / tldr
 

Web client

Python
https://ostera.github.io/tldr.jsx
1
2
https : / / ostera . github . io / tldr . jsx
 



  • zeropython 微信公众号 5868037 QQ号 5868037@qq.com QQ邮箱
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值