Linux setserial命令

更新时间: 2019-10-16 12:40

Linux setserial命令用于设置或显示串口的相关信息。

setserial可用来设置串口或显示目前的设置。

语法

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

参数说明

  • -a 显示详细信息。
  • -b 显示摘要信息。
  • -g 显示串口的相关信息。
  • -G 以指令列表的格式来显示信息。
  • -q 执行时显示较少的信息。
  • -v 执行时显示较多的信息。
  • -V 显示版本信息。
  • -z 设置前,先将所有的标记归零。

实例

显示串口信息

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

The Linux Command Line

William E. Shotts Jr. / No Starch Press, Incorporated / 2012-1-17 / USD 39.95

You've experienced the shiny, point-and-click surface of your Linux computer-now dive below and explore its depths with the power of the command line. The Linux Command Line takes you from your very ......一起来看看 《The Linux Command Line》 这本书的介绍吧!

JS 压缩/解压工具

JS 压缩/解压工具

在线压缩/解压 JS 代码

XML、JSON 在线转换

XML、JSON 在线转换

在线XML、JSON转换工具

HEX CMYK 转换工具

HEX CMYK 转换工具

HEX CMYK 互转工具