+5 votes
15 views
How to install cURL Ubuntu 20.04

in Linux/Unix by (304k points)
reopened | 15 views

1 Answer

+3 votes
Best answer

The Linux operating systems allow us different configurations to increase job options, we accomplish this by installing various commands which significantly improve the functionality of distribution, one of these is command cURL of which discuss in detail in this tutorial..

 

What is cURL
cURL is a command line tool and libraries with which it is possible to transfer data through a URL with various security options.

 

cURL supports protocols such as DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, Telnet and TFTP, SSL certificates HTTP POST, HTTP PUT, and many more.

 

The cURL utility makes use of command lines or scripts to carry out the transfer of data, which is why it is one of the most popular tools..

 

 

CURL features
Some of its most outstanding features are:

 

  • Supports cookies, forms and SSL.
  • Compatible with configuration files.
  • Multiple upload is possible through a single command.
  • Includes progress bar, speed limitation and download time details
  • Support for IPV6.

 

 

Now we are going to see how to install and use cURL in Ubuntu 20.04.

 

To stay up to date, remember to subscribe to our YouTube channel!   SUBSCRIBE

 


1. Install cURL Ubuntu 20.04

 

Step 1

The first step will be to update the repositories and packages of the system, for this we execute:
 sudo apt update 

image

 

 

Step 2

After this we install cURL with the following command:
 sudo apt install curl 

image

 

 

Step 3

We execute "curl" and we will see the following:

 

image

 

 


2. Use cURL Ubuntu 20.04

 

Step 1

When using the cURL command without any option, curl will print the source code of the URL that we enter as follows:
 curl solvetic.com 

image

 

 

Step 2

To validate the version of cURL used we execute:
 curl –version 

image

 

 

Step 3

To download a file it is possible to use the parameters -o and -O, with the option -o lowercase it is possible to define the name of the saved file, for example:
 curl -o file.extension http://domain.com/ 

image

 

 

Step 4

Using the uppercase -O parameter, cURL stores the file with the original filename:

 

image

 

 

Step 5

It is possible to access the headers of a domain with the -I parameter:
 curl -I https://www.solvetic.com 

image

 

 

Step 6

Additionally we can restrict the cURL download rate with the following command. Here we have limited your rate to 1 KB.
 curl --limit-rate 1K http://domain.com/file.tar.gz -O 
Step 7

We can list or download ranges allowing only the matching files to be downloaded:
 curl ftp://ftp.uk.debian.org/debian/pool/main/[azíritu/ 
Step 8

We can also list more details of the headers with the following command:
 curl -v http://www.solvetic.com 
With cURL we have a complete series of options to manage every aspect of web downloads and access to full details of the URL headers, this is ideal if you need to perform support or update tasks on them.

 


by (1.9m points)

Related questions

+3 votes
1 answer
asked 4 days ago in Linux/Unix by backtothefuture (304k points) | 17 views
+3 votes
1 answer
asked Sep 3 in Linux/Unix by backtothefuture (304k points) | 39 views
+4 votes
1 answer
+4 votes
1 answer
asked 1 day ago in Linux/Unix by backtothefuture (304k points) | 8 views
+5 votes
1 answer
asked 1 day ago in Linux/Unix by backtothefuture (304k points) | 8 views
Please leave a comment about whether the solution works or not (with device model)   [X]Close
5,795 questions
5,885 answers
164 comments
2 users