How do i use the wget command to download a file?
-
The wget command can download a remote file from a website using the URL. In this case similar to curl, although curl as more features.
To download a remote file use the -O option of wget
$ wget -O bootstrap-salt.sh -L https://bootstrap.saltstack.com --2017-01-13 14:17:28-- https://bootstrap.saltstack.com/ Resolving bootstrap.saltstack.com (bootstrap.saltstack.com)... 198.199.77.106 Connecting to bootstrap.saltstack.com (bootstrap.saltstack.com)|198.199.77.106|:443... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://bootstrap.saltstack.com/stable/bootstrap-salt.sh [following] --2017-01-13 14:17:29-- https://bootstrap.saltstack.com/stable/bootstrap-salt.sh Reusing existing connection to bootstrap.saltstack.com:443. HTTP request sent, awaiting response... 200 OK Length: 244283 (239K) [application/x-sh] Saving to: ‘bootstrap-salt.sh’ 100%[=============================================================>] 244,283 406KB/s in 0.6s 2017-01-13 14:17:30 (406 KB/s) - ‘bootstrap-salt.sh’ saved [244283/244283]
© Lightnetics 2024