> For the complete documentation index, see [llms.txt](https://hezhiqiang.gitbook.io/linux/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hezhiqiang.gitbook.io/linux/ming-ling/consoletype.md).

# consoletype

输出已连接的终端类型

## 补充说明

**consoletype命令** 用于打印已连接的终端类型到标准输出，并能够检查已连接的终端是当前终端还是虚拟终端。

### 语法

```
consoletype
```

### 实例

```
[root@localhost ~]# consoletype
pty
```
