如何断开 tmux 中的所有其他用户? [英] How do I disconnect all other users in tmux?
本文介绍了如何断开 tmux 中的所有其他用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个 tmux 会话,其中窗口太小,因为某处的某个用户已连接.
如何告诉 tmux 断开所有已连接的用户?
解决方案
您可以使用
C-b
),选择要分离的客户端;它还将列出他们的 col/lines 以及上次使用的时间.注意大写的 D
,即 Shift+d.你也可以使用 tmux 的 detach-client
选项
detach-client [-P] [-a] [-s target-session] [-t target-client](别名:分离)如果绑定到客户端指定的密钥,则分离当前客户端使用 -t,或当前连接到会话指定的所有客户端由 -s 定义.-a 选项会杀死除了给定的客户端之外的所有内容-t.如果给出了 -P,则将 SIGHUP 发送到该进程的父进程客户端,通常会导致它退出.
从
detach [options]
或在 tmux 内的命令行中使用 tmux detach [options]
I've got a tmux session where the window is too small because some user somewhere is connected.
How do I tell tmux to disconnect all connected users?
解决方案
You can use <prefix> D
(where prefix is C-b
by default), to chose which clients to detach; it will also list they col/lines as well as the last used time. Note the uppercase D
, i.e. Shift+d.
You could also use tmux's detach-client
option
detach-client [-P] [-a] [-s target-session] [-t target-client]
(alias: detach)
Detach the current client if bound to a key, the client specified
with -t, or all clients currently attached to the session speci-
fied by -s. The -a option kills all but the client given with
-t. If -P is given, send SIGHUP to the parent process of the
client, typically causing it to exit.
either from <prefix>:
followed by detach [options]
or on the command line inside tmux with tmux detach [options]
这篇关于如何断开 tmux 中的所有其他用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文