{"id":1894,"date":"2022-01-15T10:11:16","date_gmt":"2022-01-15T15:11:16","guid":{"rendered":"http:\/\/www.both.org\/?p=1894"},"modified":"2022-01-15T10:50:43","modified_gmt":"2022-01-15T15:50:43","slug":"download-problems-with-using-and-administering-linux-zero-to-sysadmin-files","status":"publish","type":"post","link":"http:\/\/www.both.org\/?p=1894","title":{"rendered":"Download problems with &#8220;Using and Administering Linux &#8211; Zero to SysAdmin&#8221; files"},"content":{"rendered":"<div class=\"pld-like-dislike-wrap pld-template-1\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"\" data-post-id=\"1894\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                        <i class=\"fas fa-thumbs-up\"><\/i>\r\n                <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><\/div>\n<h2 class=\"wp-block-heading\">Some files for experiments do not download properly<\/h2>\n\n\n\n<p>It was brought to my attention by reader Benjamin Robertson that experiments that use the <strong>wget<\/strong> command to download files from GItHub result in unusable files. This is due to an error in the URL and can easily be corrected.<\/p>\n\n\n\n<p>For example, the command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-normal-font-size\"><strong>wget <a href=\"https:\/\/github.com\/Apress\/using-and-administering-linux-volume-2\/raw\/master\/Experiment_6-1.txt\">https:\/\/github.com\/Apress\/using-and-administering-linux-volume-2\/blob\/master\/Experiment_6-1.txt<\/a><\/strong><\/pre>\n\n\n\n<p>Should be:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-normal-font-size\"><strong>wget <a href=\"https:\/\/github.com\/Apress\/using-and-administering-linux-volume-2\/raw\/master\/Experiment_6-1.txt\">https:\/\/github.com\/Apress\/using-and-administering-linux-volume-2\/<\/a><\/strong><a href=\"https:\/\/github.com\/Apress\/using-and-administering-linux-volume-2\/raw\/master\/Experiment_6-1.txt\"><strong>raw\/master\/Experiment_6-1.txt<\/strong><\/a><\/pre>\n\n\n\n<p>Note that \/blob\/ should be changed to \/raw\/ in the above URL as well as others that use the wget command. The known instances of this problem are in:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Volume 1, Experiment 12-1<\/li><li>Volume 2, Experiment 6-1<\/li><li>Volume 2, Experiment 6-3<\/li><li>Volume 2, Experiment 17-1<\/li><li>Volume 3, Experiment 17-1<\/li><\/ul>\n\n\n\n<p>This problem does not occur when the wget command is used with other sites such as RPMFusion and WordPress. It only occurs with GitHub.<\/p>\n\n\n\n<p>I apologize for any problems this has caused you. I am working with Apress to determine why this problem has just shown up.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some files for experiments do not download properly It was brought to my attention by reader Benjamin Robertson<\/p>\n","protected":false},"author":2,"featured_media":2381,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[5],"tags":[],"class_list":["post-1894","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"modified_by":null,"_links":{"self":[{"href":"http:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/1894","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1894"}],"version-history":[{"count":8,"href":"http:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/1894\/revisions"}],"predecessor-version":[{"id":1907,"href":"http:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/1894\/revisions\/1907"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/media\/2381"}],"wp:attachment":[{"href":"http:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1894"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}