一、linux 串口终端输入长命令不换行,覆盖前面内容,现象如下图: 二、解决方法:用stty 命令设置行列数 stty columns 200 stty rows 10 三、参考文章 https://www.cnblogs.com/goloving/p/15170537.html 常用Linux串口设备操作命令_stty设置串口参数_Caro Zhong的博客-CSDN博客