Downloading On the Command Line (wget / curl)

Obviously you do not have Firefox on the command line, but you may need to download a file from somewhere on the web. We will discuss 3 tools for this, wget, curl and lynx. Most Linux distributions will have curl installed by default, and almost all of them will have wget and lynx available in the default repos. So you can install all three in one line with:

$ apt install wget curl lynx
$ dnf install wget curl lynx
$ pacman -S wget curl lynx

wget

wget is a very simple to use tool, it will take a URL, and download whatever is at that url to your current directory. For instance, let's say I hear about a neat application called neofetch that prints out system information and a logo to your terminal.

curl

lynx