← 返回命令列表

Linux command

cu 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Open

sudo cu -l [/dev/ttyXYZ]

Example

sudo cu -l [/dev/ttyXYZ] -s [115200]

Example

sudo cu -l [/dev/ttyXYZ] -s [115200] -h

Example

sudo cu -l [/dev/ttyXYZ] -s [115200] --parity=[even] -f --nostop

Exit

<Enter><~><.>

说明

cu (Call Up) connects to another system acting as a dial-in terminal. It's commonly used for serial console access to embedded devices, routers, switches, and other hardware. The escape sequence to disconnect is: press Enter, then ~ (tilde), then . (period).

参数

-l, --line _device_
Serial device to use
-s, --speed _baud_
Baud rate (e.g., 9600, 115200)
-h, --halfduplex
Echo characters locally
--parity _type_
Parity: even, odd, or none
-f, --nortscts
Disable hardware flow control
--nostop
Disable software flow control

FAQ

What is the cu command used for?

cu (Call Up) connects to another system acting as a dial-in terminal. It's commonly used for serial console access to embedded devices, routers, switches, and other hardware. The escape sequence to disconnect is: press Enter, then ~ (tilde), then . (period).

How do I run a basic cu example?

Run `sudo cu -l [/dev/ttyXYZ]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -l, --line _device_ do in cu?

Serial device to use