Linux 中的 console、terminal、tty、pty、pts 有哪些区别?

 公司新闻     |       2025-06-23 16:50:17    |      小编

可以从一个实际的立即出发:tmux、SSH、pts 和 Shell 的完整关系解析完整架构总结本地电脑 → SSH → 网络 → 服务器 ↓ SSH服务器 → 分配 pts/1 ↓ tmux client (运行在pts/1上) ↓ (Unix Socket) tmux server (独立后台进程) ├── Session1 │ ├── Window0 │ │ ├── Pane0 → bash进程 (pty1) │ │ └── Pane1 → zsh进程 (pty2) │ └── Window1 │ └── Pane0 → fish进程 (pty3) └── Session2 └── W…。

Linux 中的 console、terminal、tty、pty、pts 有哪些区别?

有一个乌克兰的朋友问我,中国人凭什么能享受和平,我该怎么说?

做个web服务器,gin框架和go-zero怎么选?