[tmux] Reuse terminal workspaces using tmux sessions

本文介绍了如何在tmux中管理会话,包括从运行中的tmux会话中分离并保持其后台运行的方法,以及如何重新连接到这些会话。还讲解了如何退出会话并杀死所有活动窗格,以及查看所有正在运行的tmux会话。

In this lesson, we'll learn how to detach from a running tmux session and leave it running in the background. Then, we can re-attach to it later.

We'll cover:
How to exit a session by killing all active panes
- Detaching explicitly with C-b d


- Detaching a specific session with C-b D
- Viewing all running tmux sessions using:

tmux ls


- Reattaching with tmux attach -t

tmux attach -t 0

0 is the session id.

 

If you want to kill all the sessions in tmux:

killall tmux

 

转载于:https://www.cnblogs.com/Answer1215/p/6690924.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值