{"id":662,"date":"2016-04-21T09:54:22","date_gmt":"2016-04-21T01:54:22","guid":{"rendered":"http:\/\/gnonstop.linkpc.net\/~gordon\/?p=662"},"modified":"2025-08-24T23:20:36","modified_gmt":"2025-08-24T15:20:36","slug":"how-to-download-a-file-from-a-website-via-terminal","status":"publish","type":"post","link":"https:\/\/guerilla.ddns.net\/wp\/?p=662","title":{"rendered":"How to download a file from a website via terminal?"},"content":{"rendered":"<p>\u4e0b\u8f09\u5230\u7576\u524d\u76ee\u9304:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">wget &quot;http:\/\/domain.com\/directory\/4?action=AttachFile&amp;do=view&amp;target=file.tgz&quot;<\/code><\/pre>\n<p>&nbsp;<br \/>\n\u6216\u662f<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">wget -c www.example.com\/example.zip<\/code><\/pre>\n<p>&nbsp;<br \/>\n\u6216\u662f<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">axel www.example.com\/example.zip<\/code><\/pre>\n<p>&nbsp;<br \/>\n\u6216\u662f<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">curl http:\/\/domain.com\/directory\/4?action=AttachFile&amp;do=view&amp;target=file.tgz<\/code><\/pre>\n<p>&nbsp;<br \/>\n\u6216\u662f<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">aria2c http:\/\/example.com\/directory\/4?action=AttachFile&amp;do=get&amp;target=file.tgz<\/code><\/pre>\n<p>&nbsp;<br \/>\n\u4e0b\u8f09\u5230 \/home\/omio\/Desktop\/:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">wget -P \/home\/omio\/Desktop\/ &quot;http:\/\/thecanadiantestbox.x10.mx\/CC.zip&quot;<\/code><\/pre>\n<p>&nbsp;<br \/>\n\u4e0b\u8f09\u4e26\u7d66\u4e00\u500b\u65b0\u7684\u540d\u7a31 \/home\/omio\/Desktop\/NewFile.zip:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">wget -O \/home\/omio\/Desktop\/NewFile.zip &quot;http:\/\/thecanadiantestbox.x10.mx\/CC.zip&quot;<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<br \/>\nref: <a href=\"http:\/\/askubuntu.com\/questions\/207265\/how-to-download-a-file-from-a-website-via-terminal\" target=\"_blank\" rel=\"noopener\">How to download a file from a website via terminal?<\/a><br \/>\n&nbsp;<\/p>\n<p>#linux #ubuntu<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0b\u8f09\u5230\u7576\u524d\u76ee\u9304: wget &quot;http:\/\/domain.com\/directory\/4?actio [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[179],"tags":[63,18],"class_list":["post-662","post","type-post","status-publish","format-standard","hentry","category-infotech","tag-linux","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/662","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=662"}],"version-history":[{"count":5,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/662\/revisions"}],"predecessor-version":[{"id":3485,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/662\/revisions\/3485"}],"wp:attachment":[{"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=662"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=662"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=662"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}