Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Linux setserial command

Linux setserial command

Linux Command Reference Linux Command Reference

The Linux setserial command is used to set or display information about serial ports.

setserial can be used to configure serial ports or display current settings.

Syntax

setserial [-abgGqvVz][设备][串口参数]

Parameter Description:

Example

Display serial port information

# setserial -g /dev/ttyS2 

/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4

Linux Command Reference Linux Command Reference