国内最专业的IT技术学习网

UI设计

当前位置:主页 > UI设计 >

比man更强悍的命令行工具cheat

发布时间:2019/09/18标签:   命令行    点击量:

原标题:比man更强悍的命令行工具cheat
常常应用下令行,比方 curl 测试接口呼应时光,foriin{1..10};docurl-o/dev/null-s-w"$i|time_namelookup:%{time_namelookup}|time_connect:%{time_connect}|time_starttransfer:%{time_starttransfer}|time_total:%{time_total}""http://httpbin.org/ip";done1|time_namelookup:0.016000|time_connect:0.016000|time_starttransfer:0.125000|time_total:0.1410002|time_namelookup:0.016000|time_connect:0.016000|time_starttransfer:0.094000|time_total:0.1090003|time_namelookup:0.016000|time_connect:0.031000|time_starttransfer:0.109000|time_total:0.1090004|time_namelookup:0.015000|time_connect:0.031000|time_starttransfer:0.109000|time_total:0.1090005|time_namelookup:0.031000|time_connect:0.031000|time_starttransfer:0.109000|time_total:0.1090006|time_namelookup:0.016000|time_connect:0.016000|time_starttransfer:0.094000|time_total:0.1090007|time_namelookup:0.016000|time_connect:0.016000|time_starttransfer:0.125000|time_total:0.1250008|time_namelookup:0.000001|time_connect:0.016000|time_starttransfer:0.141000|time_total:0.1410009|time_namelookup:0.015000|time_connect:0.015000|time_starttransfer:0.093000|time_total:0.10900010|time_namelookup:0.000001|time_connect:0.015000|time_starttransfer:0.109000|time_total:0.125000怎样下令行参数太多,记不住怎样办?这时间你须要个男子,它就是 man。man#mancurlcurl(1)CurlManualcurl(1)NAMEcurl-transferaURLSYNOPSIScurl[options][URL...]DESCRIPTIONcurlisatooltotransferdatafromortoaserver,usingoneofthesupportedprotocols(DICT,FILE,FTP,FTPS,GOPHER,HTTP,HTTPS,IMAP,IMAPS,LDAP,LDAPS,POP3,POP3S,RTMP,RTSP,SCP,SFTP,SMTP,SMTPS,TELNETandTFTP).Thecommandisdesignedtoworkwithoutuserinteraction.curloffersabusloadofusefultrickslikeproxysupport,userauthentication,FTPupload,HTTPpost,SSLconnections,cookies,filetransferresume,Metalink,andmore.Asyouwillseebelow,thenumberoffeatureswillmakeyourheadspin!curlispoweredbylibcurlforalltransfer-relatedfeatures.Seelibcurl(3)fordetails.URLTheURLsyntaxisprotocol-dependent.You'llfindadetaileddescriptioninRFC3986.YoucanspecifymultipleURLsorpartsofURLsbywritingpartsetswithinbracesasin:http://site.{one,two,three}.comoryoucangetsequencesofalphanumericseriesbyusing[]asin:ftp://ftp.numericals.com/file[1-100].txtftp://ftp.numericals.com/file[001-100].txt(withleadingzeros)ftp://ftp.letters.com/file[a-z].txt男子确实很刁悍,给出了这么多提醒,但没有我真正想要的。。。仍是不晓得怎样用。信任你在技巧文章里常常会看到 TL;DR 即Too Long; Didn’t Read. 太长不看, man curl 的内容就是太长了,我不看。就是这个更强健的男子 tldr,它一个下令行东西,间接应用 npm install -g tldr 来装置。tldr[root@VM_0_14_centos~]#npminstall-gtldr/usr/local/n/versions/node/11.4.0/bin/tldr->/usr/local/n/versions/node/11.4.0/lib/node_modules/tldr/bin/tldr+tldr@3.2.7added113packagesfrom103contributorsin60.759s╭───────────────────────────────────────────────────────────────╮│││Newminorversionofnpmavailable!6.4.1→6.9.0││Changelog:https://github.com/npm/cli/releases/tag/v6.9.0││Runnpminstall-gnpmtoupdate!│││╰───────────────────────────────────────────────────────────────╯

版权信息Copyright © 银河官网 版权所有    ICP备案编号:鲁ICP备09013610号