# LibTmux.Server.probe_command/1

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/ce52194a746ce1d6785c352a731cff734e0d11ce/lib/libtmux/server.ex#L539
- **Page:** https://libtmux.org/en/elixir/latest/reference/libtmux-server-probe_command-1/

```
probe_command(arg1)
@spec probe_command(
        :daemon_identity
        | {:literal, binary()}
      ) :: LibTmux.Command.t()
```

Builds a command that prints the daemon's identity or a literal reply.

`:daemon_identity` prints the native PID and start time in Unix seconds,
separated by a space. `{:literal, text}` prints 1–128 printable ASCII
bytes. Both end with one newline. Construction performs no I/O and raises
`ArgumentError` for an invalid input.

Keep the native [`list-commands`](/en/tmux/latest/manual/list-commands/) command unaliased. The required tmux
releases define no `after-list-commands` hook. `run/3` runs the probe on
an existing daemon. `LibTmux.Command.render/2` can also put the command
into a trusted conditional. The surrounding commands keep their own hooks.

## Parameters

- `arg1` (`:daemon_identity | {:literal, binary()}`)
