Keep in mind that you may also call this function from scripts and cron jobs! Using Wget Command to Download Single Files To get you started, we’ll provide 12 wget command examples that you can use for everyday tasks. Also, the knowledge of basic SSH commands can make things easier. Once the setup finishes, you’ll be ready to use it.
To install wget on CentOS 7 or it’s previous distros, use: sudo yum install wget To install wget on Ubuntu 18.04 or similar, execute the following command: sudo apt-get install wget But the syntax will work on any other Linux distribution too.įirstly, access your server via SSH: ssh -port How to Install Wget?įor this wget command demonstration, we’ll be using Ubuntu 16.04. It’s also possible to implement on Mac OS X, Microsoft Windows, AmigaOS, and other popular platforms. Wget is created in portable C and usable on any Unix system. It supports downloads via FTP, SFTP, HTTP, and HTTPS. The name is a combination of World Wide Web and the word get. You can use it to retrieve content and files from various web servers. Wget is a computer tool created by the GNU Project. By the end, you’ll know all about the wget command and will be able to use it to download files from the World Wide Web. We’ll also provide 12 useful wget command examples.
This guide will show you how to use the wget command in Linux.