English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux setserial command

Linux Command大全

Linux setserial command is used to set or display related information of serial ports.

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

Syntax

setserial [-abgGqvVz][Device][Serial Port Parameters]

Parameter Description:

  • -a Display detailed information.
  • -b Display summary information.
  • -g Display related information of the serial port.
  • -G Display information in the format of instruction list.
  • -q Display less information during execution.
  • -v Display more information during execution.
  • -V Display version information.
  • -z Set all marks to zero before setting.

Online Examples

Display Serial Port Information

# setserial -g /dev/ttyS2 
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4

Linux Command大全