🧀 Learn Linux

常用 · 排查網絡

curl:請求 URL 或下載內容

放入自由練習

語法

curl [-IsSfL] [-o 檔案] URL

參數

-I
只看響應頭
-o
儲存到檔案
-s / -S / -f / -L
教學相容開關

範例

curl -o config.json https://example.com/config.json

使用說明與支援範圍

僅模擬 https://example.com/health 和 /config.json;不進行真實請求。

動手練習

完整文檔 ↗

同主題指令