| 
                         如果你不想安装tldr,也可以直接使用网页在线查看https://tldr.sh/ 
  
有了tldr,妈妈再也不用担心我记不住命令行参数了,还有没有比 tldr更强悍的男人呢,有,比如cheat  https://github.com/cheat/cheat ,直接使用pip install cheat安装。 
cheat 
看看 cheat 怎么用吧 
- $ cheat cheat 
 - # To see example usage of a program: 
 - cheat <command> 
 -  
 - # To edit a cheatsheet 
 - cheat -e <command> 
 -  
 - # To list available cheatsheets 
 - cheat -l 
 -  
 - # To search available cheatsheets 
 - cheat -s <command> 
 -  
 - # To get the current `cheat' version 
 - cheat -v 
 
  
试试 curl 
- $ cheat curl 
 - # Download a single file 
 - curl http://path.to.the/file 
 -  
 - # Download a file and specify a new filename 
 - curl http://example.com/file.zip -o new_file.zip 
 -  
 - # Download multiple files 
 - curl -O URLOfFirstFile -O URLOfSecondFile 
 -  
 - # Download all sequentially numbered files (1-24) 
 - curl http://example.com/pic[1-24].jpg 
 -  
 - # Download a file and pass HTTP Authentication 
 - curl -u username:password URL 
 -  
 - # Download a file with a Proxy 
 - curl -x proxysever.server.com:PORT http://addressiwantto.access 
 -  
 - # Download a file from FTP 
 - curl -u username:password -O ftp://example.com/pub/file.zip 
 -  
 - # Get an FTP directory listing 
 - curl ftp://username:password@example.com 
 -  
 - # Resume a previously failed download 
 - curl -C - -o partial_file.zip http://example.com/file.zip 
 -  
 - # Fetch only the HTTP headers from a response 
 - curl -I http://example.com 
 -  
 - # Fetch your external IP and network info as JSON 
 - curl http://ifconfig.me/all/json 
 -  
 - # Limit the rate of a download 
 - curl --limit-rate 1000B -O http://path.to.the/file 
 -  
 - # Get your global IP 
 - curl httpbin.org/ip 
 -  
 - # Get only the HTTP status code 
 - curl -o /dev/null -w '%{http_code} 
 - ' -s -I URL 
 
  
比tldr更详细,如果你也不想安装可以直接使用curl                         (编辑:泰州站长网) 
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! 
                     |