> For the complete documentation index, see [llms.txt](https://phiph.gitbook.io/foundation-1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://phiph.gitbook.io/foundation-1/network/linux.md). Agents can also search and read this documentation through its [MCP server](https://phiph.gitbook.io/foundation-1/~gitbook/mcp).

# Linux

## Show 30 largest files

`sudo du -a / | sort -n -r | head -n 30`

## Show sizes of all files and folders in a current folder sorted

```
(for i in *; do du -sh "$i"; done) | sort -hr
```
