CU Cheatsheet
#
cu
(Call Unix) is a Unix command used for communication with remote systems via serial connections.
Basic Commands
#
Command/Option | Example | Description |
---|
cu -l <device> | cu -l /dev/ttyS0 | Connect to the specified serial device |
cu -l <device> -s <speed> | cu -l /dev/ttyS0 -s 9600 | Connect to the serial device with a specific speed |
cu -l <device> -s <speed> -E <escape_character> | cu -l /dev/ttyS0 -s 9600 -E ^X | Connect to the serial device with a specific speed and escape character |
cu -l <device> -s <speed> -e <escape_character> | cu -l /dev/ttyS0 -s 9600 -e ^X | Connect to the serial device with an escape character for exiting |
Session Control
#
Command/Option | Example | Description |
---|
~. | ~. | End the cu session |
~# | ~# | Display a list of available cu commands |
~!<command> | ~!ls | Execute a local command while in cu session |
File Transfer
#
Command/Option | Example | Description |
---|
~<file> | ~file.txt | Transfer a file to the remote system |
~> | ~> file.txt | Receive a file from the remote system |
Troubleshooting
#
Command/Option | Example | Description |
---|
cu -l <device> -s <speed> -E <escape_character> -e <escape_character> | cu -l /dev/ttyS0 -s 9600 -E ^X -e ^X | Connect with specific parameters and escape characters for troubleshooting |
This cheatsheet covers basic cu
commands for serial communication, including session control and file transfer.