Downloading files via command line

Here are a couple commands you can use to download files on your Linux system. These are handy when you are wanting to grab some files while working on the command line.

Using wget

$ wget https://www.bitbandit.net/testfile.txt

Using curl

$ curl -o testfile.txt https://www.bitbandit.net/testfile.txt

These commands will download the file you specify and save them to your current working directory.