Terminator：适用于 Linux 专业人员的平铺终端仿真器
终端 Terminator

> 
> 你可能已经看到一些同事或 UP 主们在一个终端窗口中运行多个终端会话。
> 
> 
> 


![](/data/attachment/album/202307/16/170144b06hhei2yjzyjz55.jpg)


一些专业的 Linux 用户会使用 `screen` 或 [tmux 命令](https://linuxhandbook.com/tmux/) 来分割多个窗格。这些命令可以在任何终端应用程序中使用，但需要较大的学习曲线。


如果你想要在同一应用窗口中拥有多个终端会话而不涉及 `tmux` 或 [screen 命令](https://linuxhandbook.com/screen-command/) 的复杂性，“终结者” 是你的好帮手。


![](/data/attachment/album/202307/16/170230nlkupbzbwxpyr5yu.gif)


不，我指的不是那个“终结者”。是这个 ?


![terminator htop neofetch cmatrix](/data/attachment/album/202307/16/170230stccrq4xhxqii0bc.png)


你的系统上安装的 [终端仿真器](https://itsfoss.com/linux-terminal-emulators/) 可能具有多标签支持。而 Terminator 支持多个可调整大小的终端面板。


它模拟了类似平铺窗口管理器的功能，并将终端面板平铺在单个窗口中。


在本文中，我将向你展示如何在 Ubuntu 和其他 Linux 发行版中安装和使用 Terminator。


但在此之前，让我们快速了解一下 Terminator 提供的功能。


### Terminator 可在同一窗口中提供多个终端会话


[Terminator](https://github.com/gnome-terminator/terminator) 是一个基于 GNOME 终端的 GTK 应用程序，使用了 VTE3（GTK3 虚拟终端仿真器小部件）。


作为一个基于 GNOME 终端的应用程序，它与 GNOME 桌面环境相关联，因此有一些依赖性。


然而，即使有 GNOME 的依赖性，我发现该应用程序相对轻巧。可能在其他桌面环境中使用它不会成为问题。


从外表上看，Terminator 可能与其他终端仿真器相似。但是，Terminator 具有无限可能性，我将在后面的章节中向你展示它们。


![terminator htop multiple](/data/attachment/album/202307/16/170231j0k2wdykz27wwy3k.png)


#### 功能特点


让我总结一下 Terminator 的一些主要功能：


* 平铺布局的终端
* 支持多个标签页
* 拖拽终端面板（出色的鼠标支持）
* 类似于平铺窗口管理器的键盘快捷键
* 可以保存布局和配置文件，以便快速启动
* 通过插件可扩展功能


### 安装 Terminator


安装 Terminator 就像安装其它软件包一样简单，因为它在你能想到的所有主流发行版的官方软件源中都可用。


为了方便起见，我在下面列出了一些主要发行版的命令。


对于基于 Ubuntu 和 Debian 的发行版，请执行以下命令安装 Terminator：



```
sudo apt install terminator

```

对于基于 Fedora 和红帽的发行版，请使用以下命令：



```
sudo dnf install terminator

```

对于基于 Arch 和 Manjaro 的发行版，请执行以下命令更新并安装 Terminator：



```
sudo pacman -Syu terminator

```

注意：某些长期支持版本的发行版软件源中可能没有最新版本的 Terminator。


你还可以使用发行版提供的图形包管理器来安装 Terminator。但是，通过图形界面安装终端仿真器是无趣的。


### 使用 Terminator


当你启动 Terminator 时，默认窗口看起来就像一个简单的终端窗口。但是，经过一些耐心，它可以在一个窗口内像平铺窗口管理器一样工作。


![terminator default window](/data/attachment/album/202307/16/170231h9gxjzgucoh9cdcc.png)


Terminator 允许你使用鼠标通过水平和垂直分割来创建新的面板。


![terminator right click option](/data/attachment/album/202307/16/170232y7j5wbmlx8wm81yp.png)


然而，使用键盘快捷键会更快。你需要一些时间来适应这些键，但最终你会掌握它们的。


在这里，我在第一个面板中打开了 [htop](https://itsfoss.com/use-htop/)，如下图所示。


![terminator htop](/data/attachment/album/202307/16/170233qmukmgxmbp44pmo8.png)


要在右侧创建一个新的终端面板，只需按下 `Ctrl + Shift + e` 快捷键。其次，我在右侧面板中使用了 [neofetch](https://itsfoss.com/using-neofetch/)，如下图所示。


![terminator htop neofetch](/data/attachment/album/202307/16/170233cxgfgmxhiir26i0f.png)


最后，我使用 `Ctrl + Shift + o` 快捷键在带有 `neofetch` 的面板下方创建了另一个面板，并在此处启动了 `cmatrix`。这是其中一个无用但 [有趣的 Linux 命令](https://itsfoss.com/funny-linux-commands/)。


![terminator htop neofetch cmatrix](/data/attachment/album/202307/16/170230stccrq4xhxqii0bc.png)


上面是在本指导中完成的操作的最终屏幕截图。现在你明白我为什么说 Terminator 在一个窗口中创建了类似平铺窗口管理器的环境了吧。


如果你需要在不安装平铺窗口管理器的情况下打开多个终端，这种平铺功能将非常方便。Terminator 也支持标签页，但我认为平铺功能是该应用程序的特点。


Terminator 是少数几个配有出色文档的应用程序之一。如果你需要更多信息，请参阅其 [文档](https://gnome-terminator.readthedocs.io/en/latest/)。


### 结论


我相信所有终端仿真器都支持标签页界面。但是，当你需要同时关注多个会话时，必须在标签之间切换并不方便。


Terminator 可能不像 [Blackbox](https://itsfoss.com/blackbox-terminal/) 或 [GNOME Console](https://itsfoss.com/gnome-console/) 那样好看。但它拥有老练的 Linux 用户喜爱的功能。


它提供的功能可能并不是每个 Linux 用户都需要或想要的。我将把决定权交给你，你来决定它是否值得你投入时间。


*（题图：MJ/0b403aa1-810a-4f9f-9e52-1d42d8fe2b6a）*




---


via: <https://itsfoss.com/terminator/>


作者：[Anuj Sharma](https://itsfoss.com/author/anuj/) 选题：[lkxed](https://github.com/lkxed) 译者：ChatGPT 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

You might have seen some colleagues or YouTubers using a terminal window with multiple terminal sessions running in it.

![gnu screen](https://itsfoss.com/content/images/wordpress/2022/11/gnu-screen.webp)

Some pro Linux users do the multiple split pane with screen or [tmux commands](https://linuxhandbook.com/tmux/?ref=itsfoss.com). These commands work in any terminal application but involve a steep learning curve.

If you want multiple terminal sessions in the same application window without the complexity of the tmux or [screen commands](https://linuxhandbook.com/screen-command/?ref=itsfoss.com), Terminator is your friend.

No, not that terminator. This terminator 👇

![terminator htop neofetch cmatrix](https://itsfoss.com/content/images/wordpress/2022/11/terminator-htop-neofetch-cmatrix.png)

The [terminal emulators](https://itsfoss.com/linux-terminal-emulators/) installed on your system may have multiple-tab support. On the other hand, Terminator supports multiple resizable terminal panels.

It emulates something like a tiling window manager and tiles the terminal panel in a single window.

In this article, I’ll show you how to install and use Terminator in Ubuntu and other Linux distributions.

But before that, let’s have a quick look at the features Terminator offers.

## Terminator gives you multiple terminal sessions in the same window

[Terminator](https://github.com/gnome-terminator/terminator?ref=itsfoss.com) is a GTK application based on GNOME Terminal that uses VTE3 (Virtual Terminal Emulator widget GTK3).

Being an application based on GNOME Terminal it has some dependencies linked with the GNOME Desktop Environment.

However, I found the application relatively lightweight, even with the GNOME dependencies. Perhaps it should not be a problem to use it on other desktop environments.

From the outside, Terminator might look like any other terminal emulator. But the possibilities are endless with Terminator and I will show them to you in later sections.

![terminator htop multiple](https://itsfoss.com/content/images/wordpress/2022/11/terminator-htop-multiple.png)

### Features

Let me summarize some of the main features of Terminator:

- Terminals in tiling layout
- Supports multiple tabs
- Drag and drop terminal panel (great mouse support)
- Keyboard shortcuts akin to tiling window managers
- Saving layouts and profiles so one can get a quick head start
- Extensible through plugins

## Installing Terminator

Installing Terminator is as simple as installing any other package because it is available in the official repositories of all mainstream distributions you can name.

For your convenience, I have listed the commands for some major distributions below.

For Ubuntu and Debian based distributions, enter the below command to install Terminator:

`sudo apt install terminator`


For Fedora and Red Hat based distributions, use:

`sudo dnf install terminator`


For Arch and Manjaro based distributions, enter the below command to update and install Terminator:

`sudo pacman -Syu terminator`


Note: You might not get the latest version of Terminator in some of the Long term release distributions’ repos.

One can also install Terminator using the Graphical Package Manager provided by your distribution. But, there is no fun in installing a Terminal Emulator from the GUI.

## Using Terminator

When you launch Terminator default window will look like a simple Terminal window. But, with some patience, it can work like a tiling window manager inside a single window.

![terminator default window](https://itsfoss.com/content/images/wordpress/2022/11/terminator-default-window.png)

Terminator allows you to use the mouse for creating new panes by splitting the present one horizontally and vertically.

![terminator right click option](https://itsfoss.com/content/images/wordpress/2022/11/terminator-right-click-option.png)

However, you’ll be a lot faster with keyboard shortcuts. It takes some time to get used to the keys but you’ll get there eventually.

Here, I opened [htop](https://itsfoss.com/use-htop/) in the first panel as shown below.

![terminator htop](https://itsfoss.com/content/images/wordpress/2022/11/terminator-htop.png)

To create a new terminal panel to the right, just enter `Ctrl + Shift + e`

shortcut keys. Secondly, I have used [neofetch](https://itsfoss.com/using-neofetch/) in the right panel, as shown below.

![terminator htop neofetch](https://itsfoss.com/content/images/wordpress/2022/11/terminator-htop-neofetch.png)

Lastly, I created another panel below the one with neofetch using `Ctrl + Shift + o`

shortcut keys and launched [cmatrix](https://itsfoss.com/using-cmatrix/) here. It’s one of those useless but [amusing Linux commands](https://itsfoss.com/funny-linux-commands/).

![terminator htop neofetch cmatrix](https://itsfoss.com/content/images/wordpress/2022/11/terminator-htop-neofetch-cmatrix.png)

Above is the final screenshot of what I did in this walkthrough. Now you understand why I said that Terminator creates a tiling window manager like environment in a single window.

This tiling feature will come in handy if you need to open many terminals without installing a Tiling Window Manager. Terminator also supports tabs but the tiling feature is the USP of this application, in my opinion.

Terminator is one of the few applications that come with great documentation. If you need more information, please take a look at its [documentation](https://gnome-terminator.readthedocs.io/en/latest/?ref=itsfoss.com).

## Conclusion

I believe all terminal emulators support tabbed interface. But you’ll have to switch between the tabs and it’s not convenient when you have to keep an eye on multiple sessions simultaneously.

Terminator may not look as good as [Blackbox](https://itsfoss.com/blackbox-terminal/) or [GNOME Console](https://itsfoss.com/gnome-console/). But it has features that seasoned Linux users love.

It serves a purpose that may not be what every Linux user needs or wants. I leave it up to you to decide if it is worth your time.