From 7425747e58d2c83878711c4c764389fb0b62954c Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Mon, 12 Aug 2024 00:16:07 +0000 Subject: [PATCH] Update cheatsheets --- tldr/linux/cu | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tldr/linux/cu diff --git a/tldr/linux/cu b/tldr/linux/cu new file mode 100644 index 00000000..d5a6d305 --- /dev/null +++ b/tldr/linux/cu @@ -0,0 +1,29 @@ +--- +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. +> More information: . + +- Open a given serial port: + +`sudo cu --line {{/dev/ttyUSB0}}` + +- Open a given serial port with a given baud rate: + +`sudo cu --line {{/dev/ttyUSB0}} --speed {{115200}}` + +- Open a given serial port with a given baud rate and echo characters locally (half-duplex mode): + +`sudo cu --line {{/dev/ttyUSB0}} --speed {{115200}} --halfduplex` + +- Open a given serial port with a given baud rate, parity, and no hardware or software flow control: + +`sudo cu --line {{/dev/ttyUSB0}} --speed {{115200}} --parity={{even|odd|none}} --nortscts --nostop` + +- Exit the `cu` session when in connection: + +`~.`