curl how to download file code example

Example 1: how to download using curl

curl http://some.url --output some.file

Example 2: curl get download file

curl http://some.url --output some.file

Example 3: download a file using curl

$  curl -o taglist.zip http://www.vim.org/scripts/download_script.php?src_id=7701
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 50243  100 50243    0     0   170k      0 --:--:-- --:--:-- --:--:--  400k

Example 4: how to download a file with curl

//this downloads the file specified
curl "http://standards-oui.ieee.org/oui/oui.txt" --output macvendors.txt

Example 5: curl download file without output

curl -O https://www.cyberciti.biz/files/sticker/sticker_book.pdf

Tags:

Misc Example