curl命令详解
用于测试访问网址显示状态码
[root@localhost local]
HTTP/1.1 200 OK
Server: nginx/1.20.0
Date: Mon, 21 Mar 2022 19:06:30 GMT
Content-Type: text/html
Content-Length: 612
Last-Modified: Mon, 21 Mar 2022 12:20:16 GMT
Connection: keep-alive
ETag: "62386d80-264"
Accept-Ranges: bytes
下载网址文件
[root@localhost src]
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1036k 100 1036k 0 0 6322k 0 --:--:-- --:--:-- --:--:-- 6357k
下载文件并指定输出
[root@localhost src]
nginx_install.sh
[root@localhost src]
/usr/local/src
[root@localhost src]
[root@localhost data]
(reverse-i-search)`c': ^C /data/
[root@localhost data]
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1036k 100 1036k 0 0 5927k 0 --:--:-- --:--:-- --:--:-- 5955k
[root@localhost data]
[root@localhost data]
nginx-1.20.0.tar.gz nginx_install.sh
|