# 📜  Useful Commands

#### *Version Information*

Check the installed Monad binary version:

```bash
monad-node --version
```

#### *Service Status*

Check that all core services are running:

```bash
systemctl status monad-bft monad-execution monad-rpc --no-pager
```

#### *Logs*

View live logs for troubleshooting:

```bash
journalctl -u monad-bft -f
journalctl -u monad-execution -f
journalctl -u monad-rpc -f
```

#### *Block Height / Sync Status*

Once RPC is available, check the current block height:

```bash
curl http://localhost:8080 \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
```

#### *Disk Usage (MonadDB)*

Check TrieDB disk usage and retained history:

```bash
monad-mpt --storage /dev/triedb
```

#### *Quick Node Overview*

Get a summarized node status (services, sync, peers):

```bash
monad-status
```


---

# 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://services.validexis.com/testnets/monad/useful-commands.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.
