> For the complete documentation index, see [llms.txt](https://olexsyn.gitbook.io/enote/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://olexsyn.gitbook.io/enote/linux/linux_version.md).

# Як узнати версію Linux?

Щоб дізнатися, яку версію Linux ви використовуєте, ви можете скористатися кількома способами:

#### 1. **Команда `lsb_release`**

Виконайте в терміналі:

```bash
lsb_release -a
```

Ця команда покаже:

* Назву дистрибутива.
* Версію.
* Кодову назву.

```
> lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Linux Lite 6.0
Release:	22.04
Codename:	jammy
```

#### 2. **Перевірка файлу `/etc/os-release`**

Виконайте в терміналі:

```bash
cat /etc/os-release
```

Ви побачите інформацію про вашу систему, наприклад:

* Назва дистрибутива.
* Версія.
* ID дистрибутива.

```
> cat /etc/os-release
PRETTY_NAME="Linux Lite 6.0"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.5 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
```

#### 3. **Команда `uname`**

Якщо вам потрібна інформація про ядро Linux, скористайтеся:

```bash
uname -r
```

```
> uname -r
5.15.0-126-generic
```

Щоб отримати більше деталей про систему:

```bash
uname -a
```

```
uname -a
Linux meteo 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
```

#### 4. **Використання графічного інтерфейсу**

Якщо у вас є графічне середовище, зазвичай інформацію про версію системи можна знайти в меню "Параметри", "Про систему" або "Налаштування".

#### 5. **Для дистрибутивів на основі Debian/Ubuntu**

Виконайте:

```bash
cat /etc/debian_version
```

```
> cat /etc/debian_version
bookworm/sid
```

#### 6. **Для Red Hat/CentOS/Fedora**

Виконайте:

```bash
cat /etc/redhat-release
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://olexsyn.gitbook.io/enote/linux/linux_version.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.
