How to Rename Downloads in aria2?

This article provides a quick overview and direct solution for changing the default filename of a download when using the aria2 command-line utility. By default, aria2 uses the filename provided by the remote server, but you can easily override this behavior using a specific command-line option. Below, you will find the exact flag required, along with practical examples of how to implement it in your terminal.

The -o (or --out) Flag

To rename a downloaded file in aria2, you need to use the -o or --out flag followed by your desired filename. This tells aria2 to ignore the server’s suggested filename and save the output exactly as you specify.

Command Syntax

The basic syntax for the command is as follows:

aria2c -o "new_name.ext" "URL"

Practical Examples

Important Considerations