mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
20 lines
429 B
Markdown
20 lines
429 B
Markdown
# stty
|
|
|
|
> 设置终端设备接口的选项。
|
|
> 更多信息:<https://www.gnu.org/software/coreutils/manual/html_node/stty-invocation.html>.
|
|
|
|
- 显示当前终端的所有设置:
|
|
|
|
`stty --all`
|
|
|
|
- 设置行数或列数:
|
|
|
|
`stty {{行数|列数}} {{数量}}`
|
|
|
|
- 获取设备的实际传输速度:
|
|
|
|
`stty --file {{路径/到/驱动设备文件}} speed`
|
|
|
|
- 重置所有模式为当前终端的合理默认值:
|
|
|
|
`stty sane`
|