# Create a Simple Download Script with Aria2

Aria2 is a program that helps you download files from the command line.

By using this program, it is possible to create a simple download script or alias.

Here’s an example of a simple download script that takes an URL and downloads it to your home’s Download directory.

```plaintext
#!/bin/bash

# download file
aria2c -d ~/Downloads/ -j 3 -c $1
```

This script takes one argument, an URL Within it, the aria2c command takes three options and one parameter The first option -d sets the directory where the file will be saved In this case, the Downloads directory on home The the -j 3 option sets three concurrent downloads Then the -c options helps resume the download in case the process fails Finally it takes the URL as a script parameter

## Links

* [Gist - downloadfile](https://gist.github.com/victoroalvarez/029637897d453de611767bdf736bd6e3)
