How to download files using curl on Linux operating systems

System administrators sometimes need a quick solution to patch-and-go so they can proceed to more important tasks. This is the short article explaining how we can download files using curl on Linux based operating systems from remote locations.

Specification:

OS Version: Ubuntu Os 18.04.3 (LTS) x64
curl Version: 7.58.0 (x86_64-pc-linux-gnu)

Curl is by default a part of the Linux systems and available upon installation fo the operating system. This makes it very convenient as there are no additional installations required:

bluegrid-edu:~# curl https://wordpress.org/latest.zip -o /var/www/html/latest.zip

This is the example for getting the latest WordPress version and placing it into the document root directory.

Ivan Dabić

A man with a beard and glasses, wearing an orange hoodie and a black cap with a Hard Rock Cafe logo, stands with his arms crossed against a plain white background.

Ivan Dabić

Co-founder and CEO of BlueGrid.io, with a background in cloud infrastructure, distributed systems, monitoring, and security operations. He works closely with engineering teams to build and operate reliable systems while documenting both technical and organizational aspects of modern engineering work.

Ivan is a metalhead, and big fan of cyberpunk move genre. If you are his secret Santa go with Star Wars Lego box!

Share this post

Share this link via

Or copy link