> For the complete documentation index, see [llms.txt](https://juanbermudez.gitbook.io/aprendiendolinux/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://juanbermudez.gitbook.io/aprendiendolinux/comandos-basicos/informacion-del-sistema/tty.md).

# tty

* [tty](https://manpages.debian.org/bookworm/manpages-es/tty.1.es.html) - Imprime el nombre del terminal.

```bash
$ tty
/dev/tty1
```

```bash
$ tty
/dev/pts/0
```

La terminal física siempre se va a mostrar como `tty#` y cuando es virtual `pts/#`.

{% hint style="info" %}
Incluso si estamos usando un entorno gráfico y queremos acceder al `tty1` debemos usar la combinación de teclas `Ctrl + Alt + F1`.
{% endhint %}

{% hint style="info" %}
Normalmente los entornos gráficos inician sesión en el `tty7`, así que usando la combinación `Ctrl + Alt + F1` al `F6` disponemos de 6 terminales. Para volver al entorno gráfico usamos `Ctrl + Alt + F7`.
{% endhint %}
