# 3. Install wsl on windows

## Các câu lệnh sẽ sử dụng để cài đặt

Để cài đặt ta mở PowerShell or cmd với quyền admin sau đó sử dụng câu lệnh:

```
wsl --install
```

Để hiển thị danh sách các bản phân phối đã có sẵn:

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

Để cài đặt kali-linux

```powershell
wsl --install --distribution kali-linux
```

Để thiết lập phiên bản mặc định cho wsl là version 2

```powershell
wsl --set-default-version 2
```

### Gặp lỗi

* ???

### Có thể tham khảo qua link:

* <https://www.kali.org/docs/wsl/wsl-preparations/>


---

# 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://viettaliii.gitbook.io/home/education/install-tools/3.-install-wsl-on-windows.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.
