# ed machines files info

> Measures how big something is, following a directory all the way down.

- Canonical URL: https://getedith.pro/docs/cli/machines-files/info
- Updated: 2026-12-02

Measures how big something is, following a directory all the way down.

```
ed machines files info <machine> <path> [--json]
```

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `machine` | machine name, SSH alias, id or unambiguous prefix | required | Which machine. |
| `path` | remote path | required | What to measure. |
| `--json` | flag | off | Emit JSON on stdout. |

```json
{
  "machine": "Devbox",
  "path": "/var/log",
  "sizeBytes": 419430400
}
```

```
ed machines files info devbox /var/log
ed machines files info devbox /home/you/uploads --json
ed machines devbox files info /srv
```

What runs is `du -sk <path>`, capped at 120 seconds, and the kilobytes are
multiplied by 1024. This is disk usage rather than the sum of file sizes, so it
counts whole blocks and answers for directories, which is the reason to use it
instead of reading `sizeBytes` out of `ed machines files ls`.

The human line is formatted by macOS rather than by Edith's own byte formatter,
so it reads the way Finder's Get Info reads:

```
$ ed machines files info devbox /var/log
419.4 MB  /var/log
```

`du`'s errors are discarded, so a path that does not exist is reported as
nothing at all rather than as a failure: the size is 0, the line reads
`Zero KB  /nope`, and the exit code is 0. Confirm the path with
`ed machines files ls` when a zero would be surprising.

## Where to go next

- [`ed machines files`](https://getedith.pro/docs/cli/machines-files), the rest of this group
- [All `ed` commands](https://getedith.pro/docs/cli)

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
