网络与传输CLI Manual
$wget
Non-interactive network downloader for HTTP, HTTPS, and FTP.
命令语法POSIX Standard
wget [OPTIONS] [URL...]在交互式终端沙盒中实时运行
无需安装的客户端实时仿真环境。
bash — terminal
AST Sandbox (Free)
概述与工作原理
`wget` is a robust file downloader capable of recursive directory downloading, resuming interrupted transfers, and running unattended in the background.
常用参数与选项说明
| Flag / Option | Description |
|---|---|
| -c, --continue | Resume getting a partially-downloaded file. |
| -b, --background | Go to background immediately after startup. |
| -O [file] | Write documents to specified filename. |
| -r, --recursive | Specify recursive web crawling and downloading. |
实际生产案例与代码范例
#1Download file from URL
wget https://example.com/installer.shDownloads installer.sh directly into the current directory.
相关 Linux 常用命令
$curl网络与传输
通过 HTTP、HTTPS、FTP 和 REST API 在网络服务器之间传输数据。
$ping网络与传输
Send ICMP ECHO_REQUEST to network hosts to test connectivity and latency.
$netstat网络与传输
Print network connections, routing tables, interface statistics, and listening ports.
$ssh网络与传输
Securely log into remote Linux servers and execute commands over encrypted connections.
$scp网络与传输
Securely copy files and directories between hosts over SSH connection.
$rsync网络与传输
Fast and versatile remote and local file-copying and synchronization tool.