# Clear The Screen In psql

The `psql` interactive terminal does not have a built-in way of clearing the screen. What I usually do if I really need the screen cleared is quit, run `clear` from the shell, and then open a new `psql` session. This is unnecessary though. Instead, we can use the `\!` command to execute a shell command, in this case, the `clear` command.

```
> \! clear
```

This clears the screen in one step and keeps our current session running.

See the [psql docs](http://www.postgresql.org/docs/current/static/app-psql.html) for more details.


---

# 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://ploegert.gitbook.io/til/programmy/linux/is-app-installed/ide-display/clear-the-screen-in-psql.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.
