{"id":5247,"date":"2015-10-04T14:48:11","date_gmt":"2015-10-04T06:48:11","guid":{"rendered":"http:\/\/rmohan.com\/?p=5247"},"modified":"2015-10-04T14:48:11","modified_gmt":"2015-10-04T06:48:11","slug":"install-wget-on-centos-6-7-with-a-wget-cheat-sheet","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=5247","title":{"rendered":"Install Wget On CentOS 6.7 With A Wget Cheat Sheet"},"content":{"rendered":"<p> this quick and simple article, we will install wget command on a CentOS 6.7 server and we have included a wget cheat sheet. Wget is a free software package for downloading files using HTTP, HTTPS and FTP.<\/p>\n<p>Prerequisites<\/p>\n<p>A CentOS 6.7 server with Root privileges, if you do no have a server and would like a SSD Cloud server, you can get one here.<\/p>\n<p>Installing wget on a CentOS 6.7<\/p>\n<p>Install wget using the following command:<\/p>\n<p>yum install wget<br \/>\nYou will be asked if it is okay to install the downloaded size, you would just type for yes and press Enter to continue. I have screenshot a successful install below<\/p>\n<p>Quick wget Cheat Sheet<\/p>\n<p>To download a single file from a website using the following command:<\/p>\n<p>wget http:\/\/sitename.com\/file.jpg<br \/>\nIf your web page requires a username and password use the following command:<\/p>\n<p>wget &#8211;user=youruser &#8211;password=yourpassword http:\/\/sitename.com\/file.jpeg<br \/>\nDownload a file from an ftp site using the following command:<\/p>\n<p>wget ftp:\/\/sitename.com\/file.jpeg<br \/>\nIf your ftp site requires a username and password use the following command:<\/p>\n<p>wget &#8212;ftp-user=youruser &#8211;ftp-password=yourpassword ftp:\/\/sitename.com\/file.jpeg<br \/>\nDownload and entire website using the following command:<\/p>\n<p>wget -r http:\/\/sitename.com<br \/>\nDownload and save it in a specific path using the following command:<\/p>\n<p>wget &#8211;directory-prefix=folder\/nextfolder sitename.com<br \/>\nDownload a file and save it under a different name using the following command:<\/p>\n<p>wget &#8211;output-document=filename.php sitename.com<br \/>\nResume an interrupted file download using the following command:<\/p>\n<p>wget &#8211;continue sitename.com\/filename.mp4<br \/>\nLimit download speed of a file using the following command:<\/p>\n<p>wget &#8211;limit-rate=1000k http:\/\/sitename.com\/file.iso<br \/>\nNow you have successfully installed wget and have some examples to work with! You can see the wget manual by running \u201cwget -h\u201d. Please check back here for more updates or check out our related how-to\u2019s below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p> this quick and simple article, we will install wget command on a CentOS 6.7 server and we have included a wget cheat sheet. Wget is a free software package for downloading files using HTTP, HTTPS and FTP.<\/p>\n<p>Prerequisites<\/p>\n<p>A CentOS 6.7 server with Root privileges, if you do no have a server and would [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,17],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5247"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5247"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5247\/revisions"}],"predecessor-version":[{"id":5248,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5247\/revisions\/5248"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}