From f95e0a1f53cb114c7fd0b07c9f42e0a6d8827f45 Mon Sep 17 00:00:00 2001 From: gasts Date: Sat, 24 Nov 2018 17:10:15 +0100 Subject: [PATCH] Short description of unix wget (#22662) * Short description of unix wget A short description of unix wget * fix(guide): typos and grammar --- guide/english/bash/bash-wget/index.md | 37 +++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 guide/english/bash/bash-wget/index.md diff --git a/guide/english/bash/bash-wget/index.md b/guide/english/bash/bash-wget/index.md new file mode 100644 index 0000000000..efe3da1618 --- /dev/null +++ b/guide/english/bash/bash-wget/index.md @@ -0,0 +1,37 @@ +--- +title: Bash wget +--- +## Bash wget + +Wget is used to receive content from web servers using a terminal. Wget supports downloading via HTTP, HTTPS and FTP. + +### Usage +```bash +wget [options] URL +``` +Most used options: + +* `-i FILE`, reads URLs from a given FILE. +* `-t X`, number of `X` attempts to download a file. +* `-c`, try to continue a partial download. +* `-N`, only downloads the target file if the file is newer than a file with he same name on your target drive. +* `-v`, display all informations (default). + +### Example +Download the target file to the current directory +```Bash +wget http://example.com/folder/file +``` + +Try to download the target file up to 45 times +```Bash +wget -t 45 http://example.com/FOLDER/FILE +``` + +Continue to get a partially-downloaded file. +```Bash +wget -c http://example.com/FOLDER/FILE + + +#### More Information: +* Wikipedia: https://en.wikipedia.org/wiki/Wget