mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
35 lines
1004 B
Plaintext
35 lines
1004 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# cu
|
|
|
|
> Call Up another system and act as a dial-in/serial terminal or perform file transfers with no error checking.
|
|
> See also: `picocom`, `minicom`, `tio`.
|
|
> More information: <https://manned.org/cu>.
|
|
|
|
- Open a given serial port:
|
|
|
|
`sudo cu {{[-l|--line]}} {{/dev/ttyXYZ}}`
|
|
|
|
- Open a given serial port with a given baud rate:
|
|
|
|
`sudo cu {{[-l|--line]}} {{/dev/ttyXYZ}} {{[-s|--speed]}} {{115200}}`
|
|
|
|
- Open a given serial port with a given baud rate and echo characters locally (half-duplex mode):
|
|
|
|
`sudo cu {{[-l|--line]}} {{/dev/ttyXYZ}} {{[-s|--speed]}} {{115200}} {{[-h|--halfduplex]}}`
|
|
|
|
- Open a given serial port with a given baud rate, parity, and no hardware or software flow control:
|
|
|
|
`sudo cu {{[-l|--line]}} {{/dev/ttyXYZ}} {{[-s|--speed]}} {{115200}} --parity={{even|odd|none}} {{[-f|--nortscts]}} --nostop`
|
|
|
|
- Exit the `cu` session when in connection:
|
|
|
|
`<Enter><~><.>`
|
|
|
|
- Display help:
|
|
|
|
`cu --help`
|