To download a file on Linux using curl , the most common command is curl -O [URL] , which saves the file with its original remote name. If you do not use any output flags, curl will display the file's raw content directly in your terminal. Core Commands for Downloading curl -O https://example.com/file.zip Download and rename curl -o newname.zip https://example.com/file.zip Follow redirects (301/302) curl -L -O https://example.com/file.zip Resume interrupted download curl -C - -O https://example.com/file.zip Download to specific directory curl --output-dir /path/to/dir -O [URL] Practical Examples and Best Practices How to Download Files with cURL - DigitalOcean