2

tmux的使用

 1 year ago
source link: https://charon-cheung.github.io/2023/08/15/%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7/tmux%E7%9A%84%E4%BD%BF%E7%94%A8/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

tmux的使用 | 沉默杀手

tmux的使用
2023-08-15|常用工具|
Word count: 180|Reading time: 1 min

第一个启动的 Tmux 窗口,编号是0,第二个窗口的编号是1,以此类推。

使用编号区分会话,不太直观,更好的方法是为会话起名 tmux new -s <session-name>

tmux ls命令可以查看当前所有的 Tmux 会话。

tmux attach命令用于重新接入某个已存在的会话。

# 使用会话编号
tmux attach -t 0

# 使用会话名称
tmux attach -t <session-name>

杀死某个会话

# 使用会话编号
tmux kill-session -t 0

# 使用会话名称
tmux kill-session -t <session-name>

tmux switch命令用于切换会话

# 使用会话编号
tmux switch -t 0

# 使用会话名称
tmux switch -t <session-name>

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK