{"id":292,"date":"2025-11-29T09:19:43","date_gmt":"2025-11-29T01:19:43","guid":{"rendered":"https:\/\/www.52runoob.com\/?p=292"},"modified":"2025-11-29T09:19:43","modified_gmt":"2025-11-29T01:19:43","slug":"linux%e6%9c%80%e5%b8%b8%e7%94%a8%e7%9a%84%e4%b8%8b%e8%bd%bd%e5%91%bd%e4%bb%a4_linux%e4%b8%8b%e8%bd%bd%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/www.52runoob.com\/index.php\/2025\/11\/29\/linux%e6%9c%80%e5%b8%b8%e7%94%a8%e7%9a%84%e4%b8%8b%e8%bd%bd%e5%91%bd%e4%bb%a4_linux%e4%b8%8b%e8%bd%bd%e5%91%bd%e4%bb%a4\/","title":{"rendered":"linux\u6700\u5e38\u7528\u7684\u4e0b\u8f7d\u547d\u4ee4_linux\u4e0b\u8f7d\u547d\u4ee4"},"content":{"rendered":"\n<p>\u5728 Linux \u4e0b\uff0c\u6709\u5f88\u591a\u547d\u4ee4\u53ef\u4ee5\u7528\u6765\u4e0b\u8f7d\u6587\u4ef6\u3001\u7f51\u9875\u3001\u8f6f\u4ef6\u5305\u6216\u6574\u4e2a\u7f51\u7ad9\u3002\u4e0b\u9762\u6211\u5e2e\u4f60\u6574\u7406 <strong>\u6700\u5e38\u7528\u7684 Linux \u4e0b\u8f7d\u547d\u4ee4\u53ca\u7528\u6cd5<\/strong>\uff0c\u6309\u7c7b\u578b\u5206\u7c7b\uff0c\u975e\u5e38\u9002\u5408\u65b0\u624b\u548c\u65e5\u5e38\u8fd0\u7ef4\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>1. wget \u2014 \u6700\u7ecf\u5178\u7684\u4e0b\u8f7d\u5de5\u5177<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u5b89\u88c5<\/strong><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n# Debian\/Ubuntu\nsudo apt install wget\n# CentOS\/RHEL\nsudo yum install wget\n\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\"><strong>\u57fa\u7840\u7528\u6cd5<\/strong><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n# \u4e0b\u8f7d\u5355\u4e2a\u6587\u4ef6\nwget https:\/\/example.com\/file.zip\n\n# \u4fdd\u5b58\u4e3a\u6307\u5b9a\u6587\u4ef6\u540d\nwget -O myfile.zip https:\/\/example.com\/file.zip\n\n# \u540e\u53f0\u4e0b\u8f7d\nwget -b https:\/\/example.com\/file.zip\n\n# \u652f\u6301\u65ad\u70b9\u7eed\u4f20\nwget -c https:\/\/example.com\/file.zip\n\n# \u9650\u5236\u4e0b\u8f7d\u901f\u5ea6\uff08\u9632\u6b62\u5360\u7528\u5e26\u5bbd\uff09\nwget --limit-rate=200k https:\/\/example.com\/file.zip\n\n# \u4e0b\u8f7d\u6574\u4e2a\u7f51\u7ad9\nwget -r -np -k https:\/\/example.com\/\n\n<\/pre><\/div>\n\n\n<p><strong>\u5e38\u7528\u53c2\u6570\u8bf4\u660e\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>-c<\/code> : \u65ad\u70b9\u7eed\u4f20<\/li>\n\n\n\n<li><code>-b<\/code> : \u540e\u53f0\u4e0b\u8f7d<\/li>\n\n\n\n<li><code>-r<\/code> : \u9012\u5f52\u4e0b\u8f7d<\/li>\n\n\n\n<li><code>-np<\/code> : \u4e0d\u4e0b\u8f7d\u7236\u76ee\u5f55<\/li>\n\n\n\n<li><code>-k<\/code> : \u5c06\u7f51\u9875\u94fe\u63a5\u8f6c\u6362\u4e3a\u672c\u5730\u53ef\u6d4f\u89c8<\/li>\n\n\n\n<li><code>-O &lt;filename><\/code> : \u6307\u5b9a\u4fdd\u5b58\u6587\u4ef6\u540d<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>2. curl \u2014 \u9ad8\u7ea7\u4e0b\u8f7d\/HTTP\u5de5\u5177<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u5b89\u88c5<\/strong><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo apt install curl\nsudo yum install curl\n\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\"><strong>\u57fa\u7840\u7528\u6cd5<\/strong><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n# \u4e0b\u8f7d\u6587\u4ef6\ncurl -O https:\/\/example.com\/file.zip\n\n# \u4e0b\u8f7d\u6587\u4ef6\u5e76\u6307\u5b9a\u6587\u4ef6\u540d\ncurl -o myfile.zip https:\/\/example.com\/file.zip\n\n# \u652f\u6301\u65ad\u70b9\u7eed\u4f20\ncurl -C - -O https:\/\/example.com\/file.zip\n\n# \u663e\u793a\u8fdb\u5ea6\u6761\ncurl -# -O https:\/\/example.com\/file.zip\n\n# \u4e0b\u8f7d\u5230\u6807\u51c6\u8f93\u51fa\uff08\u6bd4\u5982\u7ba1\u9053\u4f20\u8f93\uff09\ncurl https:\/\/example.com\/file.txt | grep &quot;keyword&quot;\n\n<\/pre><\/div>\n\n\n<p><strong>\u5e38\u7528\u53c2\u6570\u8bf4\u660e\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>-O<\/code> : \u4fdd\u5b58\u4e3a\u8fdc\u7a0b\u6587\u4ef6\u540d<\/li>\n\n\n\n<li><code>-o &lt;file><\/code> : \u4fdd\u5b58\u4e3a\u6307\u5b9a\u6587\u4ef6\u540d<\/li>\n\n\n\n<li><code>-C -<\/code> : \u65ad\u70b9\u7eed\u4f20<\/li>\n\n\n\n<li><code>-L<\/code> : \u8ddf\u968f\u91cd\u5b9a\u5411\uff08302\/301\uff09<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>3. axel \/ aria2 \u2014 \u591a\u7ebf\u7a0b\u52a0\u901f\u4e0b\u8f7d<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u5b89\u88c5<\/strong><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo apt install axel aria2\nsudo yum install axel aria2\n\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\"><strong>axel<\/strong><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n# \u591a\u7ebf\u7a0b\u4e0b\u8f7d\uff08\u9ed8\u8ba44\u7ebf\u7a0b\uff09\naxel https:\/\/example.com\/file.zip\n\n# \u6307\u5b9a\u7ebf\u7a0b\u6570\naxel -n 8 https:\/\/example.com\/file.zip\n\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\"><strong>aria2<\/strong><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n# \u591a\u7ebf\u7a0b\u4e0b\u8f7d\naria2c -x 16 -s 16 https:\/\/example.com\/file.zip\n\n# \u4e0b\u8f7d torrent \u6216 metalink \u6587\u4ef6\naria2c file.torrent\n\n<\/pre><\/div>\n\n\n<p><strong>\u8bf4\u660e\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>-x<\/code> : \u6700\u5927\u8fde\u63a5\u6570<\/li>\n\n\n\n<li><code>-s<\/code> : \u5206\u6bb5\u6570<\/li>\n\n\n\n<li><code>aria2<\/code> \u652f\u6301 HTTP, HTTPS, FTP, SFTP, BitTorrent \u7b49\u534f\u8bae<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>4. scp \u2014 \u5b89\u5168\u62f7\u8d1d\uff08\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0b\u8f7d\uff09<\/strong><\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n# \u4ece\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0b\u8f7d\u5230\u672c\u5730\nscp user@remote:\/path\/to\/file \/local\/path\n\n# \u4e0b\u8f7d\u76ee\u5f55\uff08\u9012\u5f52\uff09\nscp -r user@remote:\/path\/to\/dir \/local\/dir\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>5. rsync \u2014 \u9ad8\u6548\u540c\u6b65\/\u4e0b\u8f7d<\/strong><\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n# \u4ece\u8fdc\u7a0b\u670d\u52a1\u5668\u540c\u6b65\u76ee\u5f55\u5230\u672c\u5730\nrsync -avz user@remote:\/remote\/path\/ \/local\/path\/\n\n# \u652f\u6301\u65ad\u70b9\u7eed\u4f20\nrsync -avz --progress user@remote:\/remote\/path\/ \/local\/path\/\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>6. ftp \/ lftp \u2014 FTP \u4e0b\u8f7d<\/strong><\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n# ftp \u4e0b\u8f7d\nftp ftp.example.com\n# \u767b\u5f55\u540e\nget file.zip\nmget *.zip\n\n# lftp \u9ad8\u7ea7\u5de5\u5177\nlftp ftp:\/\/user:password@ftp.example.com\nmirror -c \/remote\/path \/local\/path  # \u9012\u5f52\u4e0b\u8f7d\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>7. git \/ svn \u2014 \u4e0b\u8f7d\u6e90\u4ee3\u7801<\/strong><\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n# git \u514b\u9686\u9879\u76ee\ngit clone https:\/\/github.com\/user\/repo.git\n\n# svn \u68c0\u51fa\u9879\u76ee\nsvn checkout https:\/\/svn.example.com\/project\/trunk\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>8. yum \/ apt \u2014 \u4e0b\u8f7d\u8f6f\u4ef6\u5305<\/strong><\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n# Ubuntu\/Debian \u4e0b\u8f7d\u8f6f\u4ef6\u5305\u5230\u672c\u5730\napt download package_name\n\n# CentOS\/RedHat \u4e0b\u8f7d RPM\nyum install --downloadonly --downloaddir=.\/ package_name\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>9. \u5e38\u7528\u6280\u5de7<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u65ad\u70b9\u7eed\u4f20<\/strong>\uff1a\n<ul class=\"wp-block-list\">\n<li>wget: <code>wget -c URL<\/code><\/li>\n\n\n\n<li>curl: <code>curl -C - -O URL<\/code><\/li>\n\n\n\n<li>rsync: \u81ea\u52a8\u652f\u6301<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u540e\u53f0\u4e0b\u8f7d<\/strong>\uff1a\n<ul class=\"wp-block-list\">\n<li>wget: <code>wget -b URL<\/code><\/li>\n\n\n\n<li>nohup + curl: <code>nohup curl -O URL &amp;<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u4e0b\u8f7d\u5e26\u7279\u6b8a\u5b57\u7b26 URL<\/strong>\uff1a <code>wget \"https:\/\/example.com\/file?name=abc.zip\"<\/code><\/li>\n\n\n\n<li><strong>\u7ec4\u5408\u7ba1\u9053<\/strong>\uff1a <code>curl -s URL | tar xvz -C \/target\/dir<\/code><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 Linux \u4e0b\uff0c\u6709\u5f88\u591a\u547d\u4ee4\u53ef\u4ee5\u7528\u6765\u4e0b\u8f7d\u6587\u4ef6\u3001\u7f51\u9875\u3001\u8f6f\u4ef6\u5305\u6216\u6574\u4e2a\u7f51\u7ad9\u3002\u4e0b\u9762\u6211\u5e2e&#8230; <a class=\"more-link\" href=\"https:\/\/www.52runoob.com\/index.php\/2025\/11\/29\/linux%e6%9c%80%e5%b8%b8%e7%94%a8%e7%9a%84%e4%b8%8b%e8%bd%bd%e5%91%bd%e4%bb%a4_linux%e4%b8%8b%e8%bd%bd%e5%91%bd%e4%bb%a4\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[],"class_list":["post-292","post","type-post","status-publish","format-standard","hentry","category-linux"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts\/292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/comments?post=292"}],"version-history":[{"count":1,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts\/292\/revisions"}],"predecessor-version":[{"id":293,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts\/292\/revisions\/293"}],"wp:attachment":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/media?parent=292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/categories?post=292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/tags?post=292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}