YouTube Icon

Code Playground.

How to Install and Use Curl on Debian 10 Linux

CFG

How to Install and Use Curl on Debian 10 Linux

Twist is an order line utility for moving information from or to a far off worker. It permits you to download or transfer information utilizing HTTP, HTTPS, SCP , SFTP , and FTP conventions. 

On the off chance that you are attempting to download a document utilizing twist and getting a blunder message saying twist order not discovered it basically implies that the twist bundle isn't introduced on your Debian System. 

This guide discloses how to introduce and utilize the twist order on Debian 10, Buster. 

Also Read:-How to Install and Use PHP Composer on Debian 10

Installing Curl on Debian

Twist bundle is remembered for the default Debian 10 stores, to introduce it run the accompanying order: 

sudo apt install curl

To confirm that twist has been introduced, type twist in your terminal, and press Enter: 

curl
Also Read:-How to Install Memcached on Debian 10

The order will print the accompanying yield: 

curl: try 'curl --help' or 'curl --manual' for more information

That is it! You have effectively introduced twist on your Debian machine, and you can begin utilizing it. 

Using Curl

At the point when utilized with no alternative, twist prints the source code of the URL indicated as a contention to the standard yield: 

curl https://example.com

To download a document with twist, utilize either the - o or - O banners. 

Also Read:-How to Install Apache Cassandra on Ubuntu 20.04

The lowercase - o choice permits you to determine the name of the spared document: 

curl -o linux.tar.xz https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.0.5.tar.xz

Capitalized - O spares the record with its unique filename: 

curl -O https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.0.5.tar.xz

Another helpful element of Curl is its capacity to show the HTTP headers of a given URL: 

curl -I https://www.debian.org/
HTTP/1.1 200 OK
Date: Mon, 09 Sep 2019 21:22:30 GMT
Server: Apache
Content-Location: index.en.html
Vary: negotiate,accept-language,Accept-Encoding,cookie
TCN: choice
X-Content-Type-Options: nosniff
X-Frame-Options: sameorigin
Referrer-Policy: no-referrer
X-Xss-Protection: 1
Strict-Transport-Security: max-age=15552000
Last-Modified: Mon, 09 Sep 2019 08:52:31 GMT
ETag: "38e4-5921ae8851520"
Accept-Ranges: bytes
Content-Length: 14564
Cache-Control: max-age=86400
Expires: Tue, 10 Sep 2019 21:22:30 GMT
X-Clacks-Overhead: GNU Terry Pratchett
Content-Type: text/html
Content-Language: en
Also Read:-How to Install Nagios on Ubuntu 20.04

With Curl you can likewise download records from FTP workers that are secret phrase secured: 

curl -u FTP_USERNAME:FTP_PASSWORD ftp://ftp.example.com/file.tar.gz

Conclusion

Twist is an adaptable apparatus that permits you to send and get information over the organization. Introducing Curl on Debian is a pretty basic undertaking. 

Also Read:-How to develop CRUD Operations in CodeIgniter using MySQL

For more data about how to utilize this apparatus, visit Curl Command Examples . 

In the event that you have any inquiries or input, don't hesitate to leave a remark.




CFG