Download and save using the server-provided path basename.
Section: Basics and Output
Save using remote filename
bash
bash
curl -O https://example.com/file.tar.gzExplanation
`-O` uses the remote path basename for the local filename.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Basics and Output