> For the complete documentation index, see [llms.txt](https://services.validexis.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://services.validexis.com/mainnets/kusama/useful-commands.md).

# 📜  Useful Commands

***Check logs***

```bash
sudo journalctl -u polkadot.service -f
```

***Restart service***

```bash
sudo systemctl restart polkadot.service
```

***Clear the database***

<pre class="language-bash"><code class="lang-bash"><strong>cd polkadot-sdk
</strong><strong>./target/release/polkadot purge-chain --chain=kusama --database=RocksDb -y
</strong></code></pre>

***Generate validator key***

```bash
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys"
```
