Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does curl -SL do? [closed]

Tags:

linux

curl

I am looking at this command

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

What does "-SL" do? How would I find an answer to this using Linux command line?

like image 393
zell Avatar asked Sep 17 '25 14:09

zell


1 Answers

According to the 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.

Next time check the docs

like image 181
willcrack Avatar answered Sep 20 '25 04:09

willcrack