# ed machines files preview

> ed machines files preview in the Edith ed command line reference. Prints the first 400 KiB of a remote text file.

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

Prints the first 400 KiB of a remote text file.

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

The plain form writes the text to stdout. If the file is larger, a truncation
notice goes to stderr. `--json` returns `machine`, `path`, `text` and
`truncated`, so redirected output remains one valid document.

```
ed machines files preview devbox /etc/os-release
ed machines files preview devbox '/srv/app/config file' --json
```

The command uses the same byte limit and shell quoting as the Files preview
pane. A missing or unreadable path exits 1, and an unreachable machine exits 4.

## 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
