常用下令行,譬如 curl 測試接口相應時間,
- for i in {1..10};do curl -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";done
-
- 1 | time_namelookup: 0.016000 | time_connect: 0.016000 | time_starttransfer: 0.125000 | time_total: 0.141000
- 2 | time_namelookup: 0.016000 | time_connect: 0.016000 | time_starttransfer: 0.094000 | time_total: 0.109000
- 3 | time_namelookup: 0.016000 | time_connect: 0.031000 | time_starttransfer: 0.109000 | time_total: 0.109000
- 4 | time_namelookup: 0.015000 | time_connect: 0.031000 | time_starttransfer: 0.109000 | time_total: 0.109000
- 5 | time_namelookup: 0.031000 | time_connect: 0.031000 | time_starttransfer: 0.109000 | time_total: 0.109000
- 6 | time_namelookup: 0.016000 | time_connect: 0.016000 | time_starttransfer: 0.094000 | time_total: 0.109000
- 7 | time_namelookup: 0.016000 | time_connect: 0.016000 | time_starttransfer: 0.125000 | time_to539大樂透中獎號碼查詢tal: 0.125000
- 8 | time_namelookup: 0.000001 | time_connect: 0.016000 | time_starttransfer: 0.141000 | time_total: 0.141000
- 9 | time_namelookup: 0.015000 | time_connect: 0.015000 | time_starttransfer: 0.093000 | time_total: 0.109000
- 10 | time_namelookup: 0.000001 | time_con增加偏財運的方法nect: 0.015000 | time_starttransfer: 0.109000 | time_total: 0.125000
怎樣下令行參數太多,記不住怎么辦?這時候候你必要個男子,它便是 man。
man
- #man curl
- curl(1) Curl Manual curl(1)
-
- NAME
- curl – transfer a URL
-
- SYNOPSIS
- curl [options]&n捕魚達人apkbsp;[URL…]
-
- DESCRIPTION
- curl is a tool to transfer data from or to a server, using one of the supported protocols
- (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP,
- RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP). The command is designed to work without user
- interaction.
-
- curl offers a busload of useful tricks like proxy support, user authentication, FTP upload,
- HTTP post, SSL connections, cookies, file transfer resume, Metalink, and more. As you will
- see below, the number of features will make your head spin!
-
- curl is電競運彩下注 powered by libcurl for all transfer-related features. See libcurl(3) for details.
-
- URL
- The URL syntax is protocol-dependent. You’ll find a detailed description in RFC 3986.
-
- You can specify multiple URLs or parts of URLs by writing part sets within braces as in:
-
- http://site.{one,two,three}.com
-
- or you can get sequences of alphanumeric series by using [] as in:
-
- ftp://ftp.numericals.com/file[1-100].txt
- ftp://ftp.numericals.com/file[001-100].txt&nb大樂透快速對獎sp; (with leading zeros)
- ftp://ftp.letters.com/file[a-z].txt
男子切實其實很刁悍,給出了這么多提醒,但沒有我真正想要的。。。仍是不曉得怎么用。
信賴你在手藝文章里常常會望到 TL;DR 即Too Long; Didn’t Read. 太長不望, man curl 的內容便是太長了,我不望。
便是這個更強壯的男子 tldr,它一個下令行對象,間接使用 npm install -g tldr 來裝置。
【免責聲明】本站內容轉載自互聯網,其相關談吐僅代表作者小我私家概念盡非權勢巨子,不代表本站態度。如您發明內容存在版權成績,請提交相關鏈接至郵箱:,咱們將實時予以處置。
|