To download files through Linux Terminal, we can invoke the command wget.
Wget should be installed in all Linux distros. Otherwise, you may install it as follows:
Ubuntu/Debian
apt-get install wget
Fedora/CentOS
yum install wget
Wget will download the file and place it in your current navigated folder in the Terminal.
To download a single file from a webpage, issue the following command:
wget http://www.example.com/file.pdf
If you would like to download the entire website, include the -R (recursive) option:
wget -r http://www.example.com
Suppose you wanted to download all images from the website, include -R and -A options:
wget -r -A png,gif,jpg http://www.example.com
For more examples, please refer to http://www.go2linux.org/tips-and-tricks-of-wget-to-download-files or the official webpage.










