linux - curl -SL 有什么作用?

标签 linux curl

<分区>

我正在看这个命令

curl -SL https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/clang+llvm-10.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz

“-SL”有什么作用?我如何使用 Linux 命令行找到这个问题的答案?

最佳答案

根据curl man page

-S, --show-error
-L, --location: (HTTP) If the server reports that the requested page has moved to a different location (indicated with a Location: header and a 3XX response code), this option will make curl redo the request on the new place.

下次检查文档

关于linux - curl -SL 有什么作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65042083/

相关文章:

git - CURL 从具有安全性的 BitBucket 存储库中获取原始文件

linux - 是否可以在 Linux-x86-64 上为 Linux-ARM 构建 native gdb?

regex - 使用 curl 列出文件

php - 使用 curl 登录到 https 站点

C 动态链接到共享库抑制/处理 "cannot open shared object file" fatal error ,并继续链接

google-chrome - 使用 items.Publish API 和 cURL 发布到 Chrome 网上应用店

java - java中的curl命令

c - Linux串口编程c_cc字符配置

linux - 简单通用即插即用 ( uPNP ) 在网络上查找 Raspberry Pi

python - pygame:不打开窗口/'pygame.error: No available video device'