# Tio -- an excellent serial terminal

**URL:** <https://community.tmpdir.org/t/tio-an-excellent-serial-terminal/551>\
**Category:** Tools\
**Tags:** serial\
**Created:** [July 5, 2022, 9:27pm UTC](https://community.tmpdir.org/t/tio-an-excellent-serial-terminal/551 "2022-07-05T21:27:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cbrake](https://community.tmpdir.org/user_avatar/community.tmpdir.org/cbrake/32/3_2.png) [@cbrake](https://community.tmpdir.org/u/cbrake)\
**Post date:** [July 5, 2022, 9:27pm UTC](https://community.tmpdir.org/t/tio-an-excellent-serial-terminal/551/1 "2022-07-05T21:27:56Z")

</div>

I’ve long used `screen` for a serial terminal on Linux workstations, but its overkill, and having to nest command modes gets confusing if run inside tmux. So, I’m delighted to find tio (thanks @khem):

> **[GitHub - tio/tio: A serial device I/O tool](https://github.com/tio/tio)**
>
> A serial device I/O tool

It does smart things like:

- assume 115200 baud (used 99% of the time for serial consoles)
- reconnects if a device is disconnected then reconnected
- plays nicely with tmux

To start, it’s as easy as:

`tio /dev/ttyUSB0`

To exit: `ctrl-t q`

You can type `ctrl-t ?` to see a list of available commands.

---

<div class="post-metadata">

**Author:** ![cbrake](https://community.tmpdir.org/user_avatar/community.tmpdir.org/cbrake/32/3_2.png) [@cbrake](https://community.tmpdir.org/u/cbrake)\
**Post date:** [February 14, 2023, 6:51pm UTC](https://community.tmpdir.org/t/tio-an-excellent-serial-terminal/551/2 "2023-02-14T18:51:30Z")

</div>

updated to the latest tio and noticed it now has support for saving logs to file.

`ctrl-t f` will toggle file log on/off.

The files are named:

`tio_ttyUSB4_2023-02-14T12:33:59.log`

---

<div class="post-metadata">

**Author:** ![khem](https://community.tmpdir.org/user_avatar/community.tmpdir.org/khem/32/5_2.png) [@khem](https://community.tmpdir.org/u/khem)\
**Post date:** [February 14, 2023, 10:37pm UTC](https://community.tmpdir.org/t/tio-an-excellent-serial-terminal/551/3 "2023-02-14T22:37:30Z")

</div>

I have switched to tio for sometime now here is my config file `~/.config/tio/config`

```plaintext
[coral]
device = /dev/serial/by-id/usb-Silicon_Labs_CP2105_Dual_USB_to_UART_Bridge_Controller_00A3EA00-if00-port0
baudrate = 115200
no-autoconnect = enable
log = enable
log-file = /home/kraj/tio-logs/coral.log
line-pulse-duration = DTR=200,RTS=150
color = 12

[rpi]
device = /dev/serial/by-id/usb-Silicon_Labs_CP2104_USB_to_UART_Bridge_Controller_0148B73E-if00-port0
baudrate = 115200
no-autoconnect = enable
log = enable
log-file = /home/kraj/tio-logs/rpi.log
line-pulse-duration = DTR=200,RTS=150
color = 11

[bbb]
device = /dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0
baudrate = 115200
no-autoconnect = enable
log = enable
log-file = /home/kraj/tio-logs/bbb.log
line-pulse-duration = DTR=200,RTS=150
color = 10

[imx8]
device = /dev/serial/by-id/usb-FTDI_FT230X_Basic_UART_DM02RMBQ-if00-port0
baudrate = 115200
no-autoconnect = enable
log = enable
log-file = /home/kraj/tio-logs/imx8.log
line-pulse-duration = DTR=200,RTS=150
color = 9

[usb devices]
pattern = usb([0-9]*)
device = /dev/ttyUSB%s
color = 8

```

I then do

```plaintext
% tio coral
[14:44:04.602] tio v2.5
[14:44:04.602] Press ctrl-t q to quit
[14:44:04.604] Connected
```

---

<div class="post-metadata">

**Author:** ![cbrake](https://community.tmpdir.org/user_avatar/community.tmpdir.org/cbrake/32/3_2.png) [@cbrake](https://community.tmpdir.org/u/cbrake)\
**Post date:** [February 14, 2023, 10:44pm UTC](https://community.tmpdir.org/t/tio-an-excellent-serial-terminal/551/4 "2023-02-14T22:44:32Z")

</div>

super neat, thanks for sharing! That will save a lot of time figuring out which serial device is attached to what.

---

<div class="post-metadata">

**Author:** ![cbrake](https://community.tmpdir.org/user_avatar/community.tmpdir.org/cbrake/32/3_2.png) [@cbrake](https://community.tmpdir.org/u/cbrake)\
**Post date:** [February 24, 2026, 9:24pm UTC](https://community.tmpdir.org/t/tio-an-excellent-serial-terminal/551/5 "2026-02-24T21:24:31Z")

</div>

continually amazed at how tio has everything. The following are useful log options in your config file:

```auto
[z-mr]
device = /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
log = true
log-append = true
log-strip = true
log-file=/home/cbrake/tio-logs/z-mr.log

```
