Online Linux Terminal Logo
OnlineLinuxTerminal
网络与传输CLI Manual

$wget

Non-interactive network downloader for HTTP, HTTPS, and FTP.

命令语法POSIX Standard
wget [OPTIONS] [URL...]
Linux 社区2.4k 在线

与真实 Linux 用户交流,学习常用命令并免费获取精美速查表 PDF。

在交互式终端沙盒中实时运行

无需安装的客户端实时仿真环境。

在全屏终端工作区中打开 ↗
bash — terminal

概述与工作原理

`wget` is a robust file downloader capable of recursive directory downloading, resuming interrupted transfers, and running unattended in the background.

常用参数与选项说明

Flag / OptionDescription
-c, --continueResume getting a partially-downloaded file.
-b, --backgroundGo to background immediately after startup.
-O [file]Write documents to specified filename.
-r, --recursiveSpecify recursive web crawling and downloading.

实际生产案例与代码范例

#1Download file from URL
wget https://example.com/installer.sh

Downloads installer.sh directly into the current directory.