# File Download

## Requirements

Linux Control Center = 2.10.X or higher

## Overview

The File Download action is used to download any file on a Host from a URL.

The LCC will connect to the Host via SSH, download it from the Link provided and save the file in the directory specified when executing the action in the Console. The entire process will be managed automatically by the LCC, regardless of the number of Hosts or Links registered.

## Objective

This document aims to demonstrate how the **File Download** Action works

## Downloading Files on Hosts

{% hint style="warning" %}
**Note:** The URL must include the file to be downloaded, because the File Download action performs a standard GET request. If the link does not point directly to the final file, the download will not be completed successfully.
{% endhint %}

1. Access the **Hosts** screen.

   ![](/files/kLRZy7Wmwcn7AYdWfqAw)
2. Click on **Actions** in the row and a desired Host and click on **File Donwload**.

   ![](/files/KexLAZmX9KJZCagYTNWS)
3. To run on multiple Hosts simultaneously, select the desired Hosts and click on **Actions** at the top of the page and click on **File Download**.

   ![](/files/wm9Hd709C4oufruSVi1x)
4. Fill in the fields as follows;

* **URL**: URL to download the file<br>
* **Destination Directory:** Full directory where the file will be saved. Ex: /tmp/

  ![](/files/1PR1fzP2UD5lo5RCLQkM)

1. If you want to download more than one file simultaneously, click the **Add More URL and Destination** button and repeat the previous step with other values.

   ![](/files/EVPLbmDj5x1CXXBDZNuu)
2. Click **Save** after filling in the information correctly.

   ![](/files/MzlQYZSVhde9M54n3eXT)
3. Click the **Queue Working** button at the top of the page to monitor the execution of the action.

* **Note:** An independent **File Download** Action will be created for each Host if it is executed on more than one Host simultaneously.

  ![](/files/WqrTeFnYxrqUpYwCBe9Q)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.linuxcontrolcenter.com.br/en/host-actions/file-download.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
