gpt4 book ai didi

terminal - 如何断开 tmux 中所有其他用户的连接?

转载 作者:行者123 更新时间:2023-12-03 04:10:09 24 4
gpt4 key购买 nike

我有一个 tmux session ,其中窗口太小,因为某处的某些用户已连接。

如何告诉 tmux 断开所有连接的用户?

最佳答案

您可以使用<prefix> D (默认前缀为C-b),选择要分离的客户端;它还会列出它们的列/行以及上次使用的时间。注意大写D ,即 Shift+d

您还可以使用 tmux 的 detach-client选项

 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.

来自<prefix>:接下来是 detach [options]或者在 tmux 内的命令行上使用 tmux detach [options]

关于terminal - 如何断开 tmux 中所有其他用户的连接?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22138211/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com