终结者和 Tmux 有什么区别?

Jit*_*yas 49 terminator tmux 14.04

TmuxTerminator 有什么区别?我目前使用 Terminator,它允许我通过水平或垂直拆分它们在同一屏幕中添加更多外壳。

我在一些文章中读到了它们,但我仍然无法弄清楚主要区别。

如果我不使用 Tmux,我想知道我缺少哪些功能。我是前端开发人员。我主要使用命令行只使用 git 命令。

Mit*_*tch 32

Terminator 易于安装,并且完全符合预期 - 它可以根据用户的要求水平和垂直拆分终端窗口。它还允许在拆分一个窗口不够的情况下保持多个选项卡打开。

Tmux 介于 Terminator 和screen之间,将易用性与仅基于普通终端相结合。

以下是 tmux 相对于 Terminator 的优势:

  • 可移植性 - tmux 适用于所有能够处理普通旧终端的系统。
  • 可编写脚本 - tmux 可以编写脚本,因此设置窗口和窗格只需要一两次按键即可。
  • 服务器-客户端架构 - tmux 可用于在用户之间共享会话。
  • 调整和选项 - tmux 和 Terminator 都很容易使用,但 tmux 允许走得更远,并提供了广泛的配置技巧。1

1资料来源: ?ukasz Wróbel

  • **tmux** 是一个终端多路复用器,因此它可以让您在一个终端中在多个程序之间切换。**终结者**是一种排列端子的工具。因此,您可以继续使用终结器并在其中运行 tmux,这与在 gnome 终端或任何其他终端仿真器中使用它的方式几乎相同。 (2认同)

Arc*_*oob 24

To add up with all the answers said about the question. I have been a user of both Terminator and Tmux, but right this moment I switched to tmux in xterm. My experience has been great over the decision because ;

In tmux i can:

  • Predefine layouts, and with these layouts I can use attach commands which will run in each specified pane and then attach some key bindings to activate some predefined layout.

  • Reassign the default key bindings (as said, it's scriptable) so I can make my vim key bindings and make the experience even better.

  • Some learning experience from zooming, copying to and from the clipboard, to configuring your terminal colors and more.

  • Customizing the look and feel is in your hands. Using scripts and third party scripts you can customize tmux to look like and entreprise IDE ie. (powerline, screen sharing and predefined layouts as said above).

  • Screen Sharing FTW, Say you work with multi workspaces and have multiple terminals open in different workspaces but there is a tmux window in workspace 1 and you need that window to be available everywhere, with tmux link-window you can have that window available in all your workspaces and it's awesome!

Did i also say tmux is a Terminal multiplexer and not a Terminal emulator like Terminator, xterm, termite, urxvt etc? This is important to Note because then you can use different terminal emulators and stil share the same tmux windows in emulators you prefer to use.

The experience is so creative, and you can also check this guy called Gotbletu on YouTube he has lots of tutorials on tmux.

这是我的代码布局的图像,我只需按 (Ctlr + a -- 作为修改后的 mod 键) 和 alt + c 即可启动它。

tmux 截图

  • 很棒的截图!你在 vim statusline 中使用了什么? (2认同)
  • @Anwar 谢谢。我已经很久没有回答这个问题了。所以我进行了更新并更新了图像。另外我的 **vim** 总是使用 `vim-airline` 插件。然而,我的 tmux 状态行通常使用 tmux 的 `powerline` 段(或他们称之为的任何内容)而不是 `tmux-powerline` *原因是不推荐使用*。 (2认同)

小智 13

Terminator 是一个终端模拟器。它在您的 X-Windows 显示系统中“模拟”了一个显示终端。特别是终结者非常酷,因为它允许您拆分窗口、配置布局、分配键绑定等...

Tmux 是一个“多路复用器”。它略有不同,它允许您在终端内运行持久会话。所以 Tmux 允许你做一些事情,比如在工作中打开一个会话,关闭你的笔记本电脑,回家,然后重新打开你的笔记本电脑,然后回到同一个正在运行的会话中。

目前,我正在探索终结者,但我同时使用两者。例如,我可能有一个 Tmux 会话在一台服务器上的一个 Terminator 窗格中运行多个窗格。在另一个 Terminator 窗格中,我可能有一个 ssh 会话在另一台服务器上运行。