Linux setserial command

Linux 命令大全Linux Command Encyclopedia

The Linux setserial command is used to set or display serial port related information.

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

Syntax

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

Parameter description:

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

Examples

Display serial port information

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

Linux 命令大全Linux Command Encyclopedia

Other Extensions