{"id":11511,"date":"2024-05-29T07:01:31","date_gmt":"2024-05-29T07:01:31","guid":{"rendered":"https:\/\/greenwebpage.com\/community\/?p=11511"},"modified":"2024-05-29T09:40:14","modified_gmt":"2024-05-29T09:40:14","slug":"wget-command-in-linux-with-examples","status":"publish","type":"post","link":"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/","title":{"rendered":"Wget Command in Linux with Examples"},"content":{"rendered":"<p>Wget is a command-line tool mainly used in Linux systems. It is primarily used to fetch content or files from web servers. Wget provides various options, including -r: recursive downloading, -i: input file reading, and more, for customization.<\/p>\n<p>Additionally, wget is known for its simplicity and user-friendliness, thus achieving popularity.<\/p>\n<p>This technical writing will show you the practical use of wget command in Linux. All the commands have been executed on Ubuntu 24.04 LTS.<\/p>\n<h2><strong>Wget Command in Linux with Examples?<\/strong><\/h2>\n<p>This detailed guide will cover:<\/p>\n<ul>\n<li>How to Install the \u201cwget\u201d on a Linux-based System?<\/li>\n<li>How to Utilize the \u201cwget\u201d tool in Linux Systems?<\/li>\n<\/ul>\n<h3><strong>How to Install the \u201cwget\u201d on a Linux-based System?<\/strong><\/h3>\n<p>Utilize these steps to install \u201cwget\u201d, a command tool, on your Linux system, including Ubuntu 24.04.<\/p>\n<p><strong>Step 1: Update your Linux Files<\/strong><\/p>\n<p>To ensure that your Linux system files are up to date, execute this common and simple command:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>sudo apt update<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img fetchpriority=\"high\" decoding=\"async\" width=\"886\" height=\"258\" class=\"wp-image-11512\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-1.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-1.png 886w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-1-300x87.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-1-768x224.png 768w\" sizes=\"(max-width: 886px) 100vw, 886px\" \/><\/pre>\n<p>When your Linux system has been updated, you can proceed to the next step.<\/p>\n<p><strong>Step 2: Install the \u201cwget\u201d<\/strong><\/p>\n<p>To utilize the wget command, first, you need to install the wget package using the APT package manager:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>sudo apt install wget -y<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img decoding=\"async\" width=\"875\" height=\"185\" class=\"wp-image-11513\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-2.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-2.png 875w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-2-300x63.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-2-768x162.png 768w\" sizes=\"(max-width: 875px) 100vw, 875px\" \/><\/pre>\n<p>If <strong>wget<\/strong> is already installed on your Linux system, the terminal will display the installed version, such as <strong>1.21.4<\/strong>.<\/p>\n<h3><strong>How to Utilize the \u201cwget\u201d tool in Linux Systems?<\/strong><\/h3>\n<p>Following are some examples to demonstrate the use of the \u201cwget\u201d command in Linux systems.<\/p>\n<p><strong>Create a Directory to Store Files<\/strong><\/p>\n<p>First, you need to create a directory specifically to store your examples and navigate into it with the command:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>mkdir wget_examples &amp;&amp; cd wget_examples<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img decoding=\"async\" width=\"888\" height=\"52\" class=\"wp-image-11514\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-3.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-3.png 888w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-3-300x18.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-3-768x45.png 768w\" sizes=\"(max-width: 888px) 100vw, 888px\" \/><\/pre>\n<p>You can see that the \u201cwget_examples\u201d directory has been created and at the same time navigated into it.<\/p>\n<p><strong>1: Download a File via wget<\/strong><\/p>\n<p>It is very easy to utilize the wget for downloading a single file from any URL. For example, run the command to download a file from \u201cgreenwebpage.com\u201d:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>wget https:\/\/greenwebpage.com\/community\/how-to-install-docker-on-ubuntu-24-04\/<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"1108\" height=\"327\" class=\"wp-image-11515\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-4.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-4.png 1108w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-4-300x89.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-4-1024x302.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-4-768x227.png 768w\" sizes=\"(max-width: 1108px) 100vw, 1108px\" \/><\/pre>\n<p>You can confirm the contents of the directory to see the downloaded file:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>ls<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"882\" height=\"73\" class=\"wp-image-11516\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-5.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-5.png 882w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-5-300x25.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-5-768x64.png 768w\" sizes=\"(max-width: 882px) 100vw, 882px\" \/><\/p>\n<p>With the \u201cls\u201d command, you will see the downloaded file in your local directory.<\/p>\n<p><strong>2: Save a file with Your Preferred Name<\/strong><\/p>\n<p>You can utilize the wget command to download and save file(s) with a distinct name:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>wget -O docker-install-guide.html https:\/\/greenwebpage.com\/community\/how-to-install-docker-on-ubuntu-24-04\/<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"894\" height=\"372\" class=\"wp-image-11517\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-6.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-6.png 894w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-6-300x125.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-6-768x320.png 768w\" sizes=\"(max-width: 894px) 100vw, 894px\" \/><\/pre>\n<p>As demonstrated above, you have successfully renamed the file, such as <strong>\u201cdocker-install-guide.html\u201d<\/strong><\/p>\n<p>Instead of the default file name while downloading.<\/p>\n<p><strong>3: Download File(s) in the Background:<\/strong><\/p>\n<p>Wget command facilitates you to download the file(s) from the internet in the background to not disturb you. Simply, add the \u201c-b\u201d option with the wget command in the following manner:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>wget -b https:\/\/greenwebpage.com\/community\/how-to-install-docker-on-ubuntu-24-04\/<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"120\" class=\"wp-image-11518\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-7.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-7.png 900w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-7-300x40.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-7-768x102.png 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/pre>\n<p>After the downloading process has finished, you can verify it from the \u201cwget-log\u201d file:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>cat wget-log<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"893\" height=\"397\" class=\"wp-image-11519\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-8.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-8.png 893w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-8-300x133.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-8-768x341.png 768w\" sizes=\"(max-width: 893px) 100vw, 893px\" \/><\/pre>\n<p>As presented above, you can see the detailed status of the downloaded file.<\/p>\n<p><strong>4: Download to a Particular Directory<\/strong><\/p>\n<p>With the addition of the \u201c-P\u201d option following by the path of the directory, the wget command will download the file to the particular folder, such as <strong>\u201c~\/wget_examples\u201d<\/strong>:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>wget -P ~\/wget_examples https:\/\/greenwebpage.com\/community\/how-to-install-docker-on-ubuntu-24-04\/<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"894\" height=\"394\" class=\"wp-image-11520\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-9.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-9.png 894w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-9-300x132.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-9-768x338.png 768w\" sizes=\"(max-width: 894px) 100vw, 894px\" \/><\/pre>\n<p>There you are, the file has been downloaded to the \u201c~\/wget_examples\u201d directory.<\/p>\n<p><strong>5: Download Multiple Selected Files<\/strong><\/p>\n<p>Wget enables you to download multiple files. For the purpose, create a file such as \u201cselected_urls.txt\u201d:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>nano selected_urls.txt<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"880\" height=\"50\" class=\"wp-image-11521\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-10.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-10.png 880w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-10-300x17.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-10-768x44.png 768w\" sizes=\"(max-width: 880px) 100vw, 880px\" \/><\/pre>\n<p>Copy the links or urls that you want to download:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>#Docker installation guide \n<blockquote class=\"wp-embedded-content\" data-secret=\"oahQN7RqbP\"><a href=\"https:\/\/greenwebpage.com\/community\/how-to-install-docker-on-ubuntu-24-04\/\">How to Install Docker on Ubuntu 24.04<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;How to Install Docker on Ubuntu 24.04&#8221; &#8212; Greenwebpage Community\" src=\"https:\/\/greenwebpage.com\/community\/how-to-install-docker-on-ubuntu-24-04\/embed\/#?secret=qVCxLOvfUV#?secret=oahQN7RqbP\" data-secret=\"oahQN7RqbP\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe> \n\n#Laravel installation guide \n<blockquote class=\"wp-embedded-content\" data-secret=\"0HAeXP3bke\"><a href=\"https:\/\/greenwebpage.com\/community\/how-to-install-laravel-on-ubuntu-24-04\/\">How to Install Laravel on Ubuntu 24.04<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;How to Install Laravel on Ubuntu 24.04&#8221; &#8212; Greenwebpage Community\" src=\"https:\/\/greenwebpage.com\/community\/how-to-install-laravel-on-ubuntu-24-04\/embed\/#?secret=t5iZEaUWK6#?secret=0HAeXP3bke\" data-secret=\"0HAeXP3bke\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe> \n\n#Redis installation guide \nhttps:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"888\" height=\"602\" class=\"wp-image-11522\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-11.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-11.png 888w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-11-300x203.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-11-768x521.png 768w\" sizes=\"(max-width: 888px) 100vw, 888px\" \/><\/p>\n<p>Once you have copied all the urls in the text file (i.e. selected_urls.txt), save the file.<\/p>\n<p>Utilize the following command to download all files listed in selected_urls.txt:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>wget -i selected_urls.txt<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"1100\" height=\"526\" class=\"wp-image-11523\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-12.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-12.png 1100w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-12-300x143.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-12-1024x490.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-12-768x367.png 768w\" sizes=\"(max-width: 1100px) 100vw, 1100px\" \/> <img loading=\"lazy\" decoding=\"async\" width=\"1098\" height=\"515\" class=\"wp-image-11524\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-13.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-13.png 1098w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-13-300x141.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-13-1024x480.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-13-768x360.png 768w\" sizes=\"(max-width: 1098px) 100vw, 1098px\" \/><\/pre>\n<p>You can verify the selected file downloaded using the selected_urls.txt:<\/p>\n<table>\n<thead>\n<tr>\n<th>ls<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1013\" height=\"97\" class=\"wp-image-11525\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-14.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-14.png 1013w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-14-300x29.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-14-768x74.png 768w\" sizes=\"(max-width: 1013px) 100vw, 1013px\" \/><\/p>\n<p>The above three files, encircled with a red box, can be seen in your local directory (i.e. wget_examples).<\/p>\n<p><strong>6: Download File(s) Recursively<\/strong><\/p>\n<p>If you want download files recursively, you can easily utilize the \u201cwget\u201d command in the following way:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>wget -r https:\/\/greenwebpage.com\/community\/<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"1098\" height=\"522\" class=\"wp-image-11526\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-15.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-15.png 1098w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-15-300x143.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-15-1024x487.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-15-768x365.png 768w\" sizes=\"(max-width: 1098px) 100vw, 1098px\" \/> <img loading=\"lazy\" decoding=\"async\" width=\"1099\" height=\"536\" class=\"wp-image-11527\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-16.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-16.png 1099w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-16-300x146.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-16-1024x499.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-16-768x375.png 768w\" sizes=\"(max-width: 1099px) 100vw, 1099px\" \/><\/pre>\n<p>In the above output, you can inspect that the command downloaded all the content of the website.<\/p>\n<p>To verify what is downloaded inside the \u201cgreenwebpage.com\u201d, run the command:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>du -ah greenwebpage.com<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"1100\" height=\"510\" class=\"wp-image-11528\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-17.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-17.png 1100w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-17-300x139.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-17-1024x475.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-17-768x356.png 768w\" sizes=\"(max-width: 1100px) 100vw, 1100px\" \/> <img loading=\"lazy\" decoding=\"async\" width=\"1101\" height=\"534\" class=\"wp-image-11529\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-18.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-18.png 1101w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-18-300x146.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-18-1024x497.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/word-image-11511-18-768x372.png 768w\" sizes=\"(max-width: 1101px) 100vw, 1101px\" \/><\/pre>\n<p>You can see the list of the files that have been downloaded along with the size of the \u201cgreenwebpage.com\u201d directory.<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>Wget is a commonly used powerful tool for downloading files from the internet in Linux systems. By adding various useful options (i.e., -b, -r, -i, -O, -P), you can enhance the use of the wget command. The wget command can be used efficiently to manage your downloads.<\/p>\n\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>Wget is a command-line tool mainly used in Linux systems. It is primarily used to fetch content or files from web servers. Wget provides various options, including -r: recursive downloading, -i: input file reading, and more, for customization. Additionally, wget is known for its simplicity and user-friendliness, thus achieving popularity. This technical writing will show [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":11530,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[324,230,317,323],"class_list":["post-11511","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-download","tag-linux","tag-ubuntu-24-04","tag-wget"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Wget Command in Linux with Examples - Greenwebpage Community<\/title>\n<meta name=\"description\" content=\"This technical writing will show you the practical use of wget command in Linux.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Wget Command in Linux with Examples - Greenwebpage Community\" \/>\n<meta property=\"og:description\" content=\"This technical writing will show you the practical use of wget command in Linux.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/\" \/>\n<meta property=\"og:site_name\" content=\"Greenwebpage Community\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-29T07:01:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-29T09:40:14+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/Wget-command-in-Linux-with-examples.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Karim Buzdar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Karim Buzdar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/\"},\"author\":{\"name\":\"Karim Buzdar\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\"},\"headline\":\"Wget Command in Linux with Examples\",\"datePublished\":\"2024-05-29T07:01:31+00:00\",\"dateModified\":\"2024-05-29T09:40:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/\"},\"wordCount\":709,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/Wget-command-in-Linux-with-examples.jpg\",\"keywords\":[\"Download\",\"Linux\",\"Ubuntu 24.04\",\"Wget\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/\",\"name\":\"Wget Command in Linux with Examples - Greenwebpage Community\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/Wget-command-in-Linux-with-examples.jpg\",\"datePublished\":\"2024-05-29T07:01:31+00:00\",\"dateModified\":\"2024-05-29T09:40:14+00:00\",\"description\":\"This technical writing will show you the practical use of wget command in Linux.\",\"breadcrumb\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/#primaryimage\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/Wget-command-in-Linux-with-examples.jpg\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/Wget-command-in-Linux-with-examples.jpg\",\"width\":1020,\"height\":600,\"caption\":\"Wget command in Linux with examples\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/greenwebpage.com\/community\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Wget Command in Linux with Examples\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"name\":\"Greenwebpage Community\",\"description\":\"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.\",\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/greenwebpage.com\/community\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\",\"name\":\"Greenwebpage Community\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"width\":512,\"height\":512,\"caption\":\"Greenwebpage Community\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\",\"name\":\"Karim Buzdar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"caption\":\"Karim Buzdar\"},\"sameAs\":[\"https:\/\/greenwebpage.com\"],\"url\":\"https:\/\/greenwebpage.com\/community\/author\/karim\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Wget Command in Linux with Examples - Greenwebpage Community","description":"This technical writing will show you the practical use of wget command in Linux.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/","og_locale":"en_US","og_type":"article","og_title":"Wget Command in Linux with Examples - Greenwebpage Community","og_description":"This technical writing will show you the practical use of wget command in Linux.","og_url":"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/","og_site_name":"Greenwebpage Community","article_published_time":"2024-05-29T07:01:31+00:00","article_modified_time":"2024-05-29T09:40:14+00:00","og_image":[{"width":1020,"height":600,"url":"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/Wget-command-in-Linux-with-examples.jpg","type":"image\/jpeg"}],"author":"Karim Buzdar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Karim Buzdar","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/#article","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/"},"author":{"name":"Karim Buzdar","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8"},"headline":"Wget Command in Linux with Examples","datePublished":"2024-05-29T07:01:31+00:00","dateModified":"2024-05-29T09:40:14+00:00","mainEntityOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/"},"wordCount":709,"commentCount":0,"publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/Wget-command-in-Linux-with-examples.jpg","keywords":["Download","Linux","Ubuntu 24.04","Wget"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/","url":"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/","name":"Wget Command in Linux with Examples - Greenwebpage Community","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/#website"},"primaryImageOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/#primaryimage"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/Wget-command-in-Linux-with-examples.jpg","datePublished":"2024-05-29T07:01:31+00:00","dateModified":"2024-05-29T09:40:14+00:00","description":"This technical writing will show you the practical use of wget command in Linux.","breadcrumb":{"@id":"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/#primaryimage","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/Wget-command-in-Linux-with-examples.jpg","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/05\/Wget-command-in-Linux-with-examples.jpg","width":1020,"height":600,"caption":"Wget command in Linux with examples"},{"@type":"BreadcrumbList","@id":"https:\/\/greenwebpage.com\/community\/wget-command-in-linux-with-examples\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/greenwebpage.com\/community\/"},{"@type":"ListItem","position":2,"name":"Wget Command in Linux with Examples"}]},{"@type":"WebSite","@id":"https:\/\/greenwebpage.com\/community\/#website","url":"https:\/\/greenwebpage.com\/community\/","name":"Greenwebpage Community","description":"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.","publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/greenwebpage.com\/community\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/greenwebpage.com\/community\/#organization","name":"Greenwebpage Community","url":"https:\/\/greenwebpage.com\/community\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","width":512,"height":512,"caption":"Greenwebpage Community"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8","name":"Karim Buzdar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","caption":"Karim Buzdar"},"sameAs":["https:\/\/greenwebpage.com"],"url":"https:\/\/greenwebpage.com\/community\/author\/karim\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/11511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/comments?post=11511"}],"version-history":[{"count":2,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/11511\/revisions"}],"predecessor-version":[{"id":11537,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/11511\/revisions\/11537"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media\/11530"}],"wp:attachment":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media?parent=11511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/categories?post=11511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/tags?post=11511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}