# Размеры дисков, директорий, файлов

```
df -h - иинформация по дискам
du -sh /path/to/directory - вывести для директории
du -sh /path/to/directory/* - вывести для всех поддиректорий и файлов инфу

```

Сразу же покажу удобную комбинацию команд, чтобы посмотреть, кто в данной директории занимает больше всего места. Директории выстроятся в список, начиная с самой объемной и далее. В моем примере будут выведены 10 самых больших папок в каталоге.

```
du . --max-depth=1 -ah | sort -rh | head -10
```


---

# 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://appsecurity.gitbook.io/devops/operacionnye-sistemy/linux/failovaya-sistema/razmery-diskov-direktorii-failov.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.
