{"id":18746,"date":"2022-10-04T15:40:27","date_gmt":"2022-10-04T15:40:27","guid":{"rendered":"https:\/\/linuxways.net\/?p=18746"},"modified":"2022-11-04T02:55:31","modified_gmt":"2022-11-04T02:55:31","slug":"download-files-curl-linux-mint-21","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/mint\/download-files-curl-linux-mint-21\/","title":{"rendered":"How to Download Files With Curl in Linux Mint 21?"},"content":{"rendered":"<p>\u201cCurl stands for Client URL, and it is a useful Linux utility that enables data transfer from a client to a server and vice-versa. This command can also be used to download files from a web server to a Linux system. In this guide, we will show you how this can be done using a Linux Mint 21 system.\u201d<\/p>\n<h2><strong>How to Download Files With Curl in Linux Mint 21?<\/strong><\/h2>\n<p>To be able to download a file with the Curl command in Linux Mint 21, you need to perform the following steps:<\/p>\n<h3><strong>Step # 1: Install the Curl Command on Linux Mint 21<\/strong><\/h3>\n<p>First, you should install the Curl command on your system with the command shown below:<\/p>\n<pre>\r\n$ sudo apt install curl\r\n<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"401\" height=\"25\" class=\"wp-image-18751\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18746-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18746-1.png 401w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18746-1-300x19.png 300w\" sizes=\"auto, (max-width: 401px) 100vw, 401px\" \/><\/strong><\/p>\n<h3><strong>Step # 2: Verify the Installation of the Curl Command on Linux Mint 21<\/strong><\/h3>\n<p>Once the Curl command is installed on your system, you can verify its installation by checking its version with the following command:<\/p>\n<pre>\r\n$ curl --version\r\n<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"342\" height=\"25\" class=\"wp-image-18752\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18746-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18746-2.png 342w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18746-2-300x22.png 300w\" sizes=\"auto, (max-width: 342px) 100vw, 342px\" \/><\/strong><\/p>\n<p>The image shown below verifies the installation of the Curl command.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"646\" height=\"183\" class=\"wp-image-18754\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18746-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18746-3.png 646w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18746-3-300x85.png 300w\" sizes=\"auto, (max-width: 646px) 100vw, 646px\" \/><\/p>\n<h3><strong>Step # 3: Download a File With Curl on Your System<\/strong><\/h3>\n<p>Now, you can download your desired file with the Curl command on your system by running it in the following manner:<\/p>\n<pre>\r\n$ curl \u2013O https:\/\/file-examples.com\/wp-content\/uploads\/2017\/02\/file-sample_100kB.doc\r\n<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"645\" height=\"45\" class=\"wp-image-18756\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18746-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18746-4.png 645w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18746-4-300x21.png 300w\" sizes=\"auto, (max-width: 645px) 100vw, 645px\" \/><\/strong><\/p>\n<p>After successfully downloading the specified file on your system, the Curl command will terminate with the output shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"644\" height=\"120\" class=\"wp-image-18758\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18746-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18746-5.png 644w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18746-5-300x56.png 300w\" sizes=\"auto, (max-width: 644px) 100vw, 644px\" \/><\/p>\n<h3><strong>Step # 4: Verify the Download of the Desired File on Your System<\/strong><\/h3>\n<p>You can also cross-check if the desired file has been downloaded on your Linux Mint 21 system or not by running the following command:<\/p>\n<pre>\r\n$ ls \u2013l\r\n<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"274\" height=\"28\" class=\"wp-image-18762\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18746-6.png\" \/><\/strong><\/p>\n<p>From the highlighted section of the image shown below, you can confirm that the specified file has been downloaded successfully on our Linux Mint 21 system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"561\" height=\"316\" class=\"wp-image-18769\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18746-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18746-7.png 561w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18746-7-300x169.png 300w\" sizes=\"auto, (max-width: 561px) 100vw, 561px\" \/><\/p>\n<h3><strong>Pro-Tip<\/strong><\/h3>\n<p>You can even download multiple files at once by using the Curl command in Linux Mint 21. All you need to do is to mention the links of all such files separated by a \u201c-O\u201d flag before every file while running the Curl command, and you will be able to download them all at once.<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>This guide discussed the usage of the Curl command in Linux Mint 21 for downloading files. We also covered the method of installing this command on Linux, followed by the procedure of downloading files with it. Once you go through this procedure, it will be very easy for you to download files with this command on your Linux Mint 21 system.<\/p>","protected":false},"excerpt":{"rendered":"<p> Curl stands for Client URL. It can be used to download files from a web server to a Linux system. How to download files with Curl in Linux Mint 21 is discussed.<\/p>","protected":false},"author":3,"featured_media":18805,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-18746","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mint"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/18746","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=18746"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/18746\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/18805"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=18746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=18746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=18746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}