Linux setserial命令

Linux 教程 · 2019-02-16 06:41:54

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

点击查看所有 Linux 教程 文章: https://codercto.com/courses/l/14.html

查看所有标签

Head First WordPress

Head First WordPress

Siarto Jeff / O'Reilly Media / 2010-02-15 / USD 34.99

Whether you're promoting your business or writing about your travel adventures, "Head First WordPress" will teach you not only how to make your blog look unique and attention-grabbing, but also how to......一起来看看 《Head First WordPress》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具