# Базовые команды

#### MAN

Описание (мануал) команды

```bash
man <command-name>
```

#### EXIT

Завершить текущую сессию в терминале

```bash
exit
```

#### CLEAR

Очистить окно терминала

```bash
clear
```

#### HISTIRY

история вводимых команд в терминале

```bash
history
```

#### LESS

```bash
less <file-name>
```

#### GREP

```bash
grep "<string>" <file-name>
```

```bash
grep -i "<string>" <file-name>
```

```bash
grep -r "<string>" <file-name>
```

## Создание файлов и папок

#### TOUCH

Создать файл

```bash
touch  <file-name>
```

## Работа с архивами

#### TAR

Создание архива.

```bash
tar -cvf <archive-name.tar> <file-name-to-archive>
```

Посмотреть содержимое архива.

```bash
tar -tvf <archive-to-view.tar>
```

Распаковать архив.

```bash
tar -xvf <archive-to-extract.tar>
```

#### UNZIP

```bash
unzip <archive-to-extract.zip>
```

```bash
unzip -l <archive-to-extract.zip>
```

## Системные (Работа с процессами)

#### PS

Выводит информацию о текущих запущенных процессах. Чаще используется с доп. флагами

```bash
ps
```

## Работа с сетью

#### PING

```bash
ping <host-address or IP>
```

####

```bash
```


---

# 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://brezencat.gitbook.io/docu/linux/basic_command.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.
