# WSL

## Instalación

{% hint style="warning" %}
En mi caso, hago la instalación en un Windows 10.
{% endhint %}

Abrimos un PowerShell y listamos todas las distribuciones posibles.

```powershell
wsl --list --online
```

En mi caso voy a coger Ubuntu. Al ser la por defecto podríamos hacer `wsl --install` ya que por defecto siempre instalará Ubuntu. Si queremos seleccionar una en concreto:

```powershell
wsl --install -d (distribución)
#wsl --install -d Ubuntu
```

{% hint style="info" %}

## Comandos útiles

```powershell
wsl --list --online #muestra distribuciones disponibles
wsl --install -d (distribución) #instala una distribución concreta
wsl --list #lista distribuciones instaladas
wsl -l -v #muestra la versión de la distribución
wsl --set-version (distribución) (versión)
```

{% endhint %}


---

# 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://bibliotek.gitbook.io/miwiki/configuraciones/configuraciones-windows/wsl.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.
