@wxy
https://linux.cn/article-16004-1.html
This commit is contained in:
Xingyu Wang 2023-07-16 17:03:27 +08:00
parent 74fc2d84b5
commit 0b74f36d59
2 changed files with 158 additions and 152 deletions

View File

@ -0,0 +1,158 @@
[#]: subject: "Terminator: The Tiling Terminal Emulator for Linux Pros"
[#]: via: "https://itsfoss.com/terminator/"
[#]: author: "Anuj Sharma https://itsfoss.com/author/anuj/"
[#]: collector: "lkxed"
[#]: translator: "ChatGPT"
[#]: reviewer: "wxy"
[#]: publisher: "wxy"
[#]: url: "https://linux.cn/article-16004-1.html"
Terminator适用于 Linux 专业人员的平铺终端仿真器
======
> 你可能已经看到一些同事或 UP 主们在一个终端窗口中运行多个终端会话。
![][0]
一些专业的 Linux 用户会使用 `screen` 或 [tmux 命令][2] 来分割多个窗格。这些命令可以在任何终端应用程序中使用,但需要较大的学习曲线。
如果你想要在同一应用窗口中拥有多个终端会话而不涉及 `tmux` 或 [screen 命令][3] 的复杂性,“终结者” 是你的好帮手。
![][3a]
不,我指的不是那个“终结者”。是这个 👇
![terminator htop neofetch cmatrix][4]
你的系统上安装的 [终端仿真器][5] 可能具有多标签支持。而 Terminator 支持多个可调整大小的终端面板。
它模拟了类似平铺窗口管理器的功能,并将终端面板平铺在单个窗口中。
在本文中,我将向你展示如何在 Ubuntu 和其他 Linux 发行版中安装和使用 Terminator。
但在此之前,让我们快速了解一下 Terminator 提供的功能。
### Terminator 可在同一窗口中提供多个终端会话
[Terminator][6] 是一个基于 GNOME 终端的 GTK 应用程序,使用了 VTE3GTK3 虚拟终端仿真器小部件)。
作为一个基于 GNOME 终端的应用程序,它与 GNOME 桌面环境相关联,因此有一些依赖性。
然而,即使有 GNOME 的依赖性,我发现该应用程序相对轻巧。可能在其他桌面环境中使用它不会成为问题。
从外表上看Terminator 可能与其他终端仿真器相似。但是Terminator 具有无限可能性,我将在后面的章节中向你展示它们。
![terminator htop multiple][7]
#### 功能特点
让我总结一下 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][8]
Terminator 允许你使用鼠标通过水平和垂直分割来创建新的面板。
![terminator right click option][9]
然而,使用键盘快捷键会更快。你需要一些时间来适应这些键,但最终你会掌握它们的。
在这里,我在第一个面板中打开了 [htop][10],如下图所示。
![terminator htop][11]
要在右侧创建一个新的终端面板,只需按下 `Ctrl + Shift + e` 快捷键。其次,我在右侧面板中使用了 [neofetch][12],如下图所示。
![terminator htop neofetch][13]
最后,我使用 `Ctrl + Shift + o` 快捷键在带有 `neofetch` 的面板下方创建了另一个面板,并在此处启动了 `cmatrix`。这是其中一个无用但 [有趣的 Linux 命令][14]。
![terminator htop neofetch cmatrix][15]
上面是在本指导中完成的操作的最终屏幕截图。现在你明白我为什么说 Terminator 在一个窗口中创建了类似平铺窗口管理器的环境了吧。
如果你需要在不安装平铺窗口管理器的情况下打开多个终端这种平铺功能将非常方便。Terminator 也支持标签页,但我认为平铺功能是该应用程序的特点。
Terminator 是少数几个配有出色文档的应用程序之一。如果你需要更多信息,请参阅其 [文档][16]。
### 结论
我相信所有终端仿真器都支持标签页界面。但是,当你需要同时关注多个会话时,必须在标签之间切换并不方便。
Terminator 可能不像 [Blackbox][17] 或 [GNOME Console][18] 那样好看。但它拥有老练的 Linux 用户喜爱的功能。
它提供的功能可能并不是每个 Linux 用户都需要或想要的。我将把决定权交给你,你来决定它是否值得你投入时间。
*题图MJ/0b403aa1-810a-4f9f-9e52-1d42d8fe2b6a*
--------------------------------------------------------------------------------
via: https://itsfoss.com/terminator/
作者:[Anuj Sharma][a]
选题:[lkxed][b]
译者ChatGPT
校对:[wxy](https://github.com/wxy)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/anuj/
[b]: https://github.com/lkxed
[1]: https://itsfoss.com/content/images/wordpress/2022/11/gnu-screen.webp
[2]: https://linuxhandbook.com/tmux/
[3]: https://linuxhandbook.com/screen-command/
[3a]: https://media0.giphy.com/media/v1.Y2lkPTc5MGI3NjExcnJnbmdsNGF6anlxNWNvY21sNnpqNGF3ZDg5c2JhemliZ240Z3p1dSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/13CfqebsPMctjO/giphy.gif
[4]: https://itsfoss.com/content/images/wordpress/2022/11/terminator-htop-neofetch-cmatrix.png
[5]: https://itsfoss.com/linux-terminal-emulators/
[6]: https://github.com/gnome-terminator/terminator
[7]: https://itsfoss.com/content/images/wordpress/2022/11/terminator-htop-multiple.png
[8]: https://itsfoss.com/content/images/wordpress/2022/11/terminator-default-window.png
[9]: https://itsfoss.com/content/images/wordpress/2022/11/terminator-right-click-option.png
[10]: https://itsfoss.com/use-htop/
[11]: https://itsfoss.com/content/images/wordpress/2022/11/terminator-htop.png
[12]: https://itsfoss.com/using-neofetch/
[13]: https://itsfoss.com/content/images/wordpress/2022/11/terminator-htop-neofetch.png
[14]: https://itsfoss.com/funny-linux-commands/
[15]: https://itsfoss.com/content/images/wordpress/2022/11/terminator-htop-neofetch-cmatrix.png
[16]: https://gnome-terminator.readthedocs.io/en/latest/
[17]: https://itsfoss.com/blackbox-terminal/
[18]: https://itsfoss.com/gnome-console/
[0]: https://img.linux.net.cn/data/attachment/album/202307/16/170144b06hhei2yjzyjz55.jpg

View File

@ -1,152 +0,0 @@
[#]: subject: "Terminator: The Tiling Terminal Emulator for Linux Pros"
[#]: via: "https://itsfoss.com/terminator/"
[#]: author: "Anuj Sharma https://itsfoss.com/author/anuj/"
[#]: collector: "lkxed"
[#]: translator: " "
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
Terminator: The Tiling Terminal Emulator for Linux Pros
======
You might have seen some colleagues or YouTubers using a terminal window with multiple terminal sessions running in it.
![gnu screen][1]
Some pro Linux users do the multiple split pane with screen or [tmux commands][2]. 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][3], Terminator is your friend.
No, not that terminator. This terminator 👇
![terminator htop neofetch cmatrix][4]
The [terminal emulators][5] 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, Ill show you how to install and use Terminator in Ubuntu and other Linux distributions.
But before that, lets have a quick look at the features Terminator offers.
### Terminator gives you multiple terminal sessions in the same window
[Terminator][6] 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][7]
#### 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][8]
Terminator allows you to use the mouse for creating new panes by splitting the present one horizontally and vertically.
![terminator right click option][9]
However, youll be a lot faster with keyboard shortcuts. It takes some time to get used to the keys but youll get there eventually.
Here, I opened [htop][10] in the first panel as shown below.
![terminator htop][11]
To create a new terminal panel to the right, just enter `Ctrl + Shift + e` shortcut keys. Secondly, I have used [neofetch][12] in the right panel, as shown below.
![terminator htop neofetch][13]
Lastly, I created another panel below the one with neofetch using `Ctrl + Shift + o` shortcut keys and launched `cmatrix` here. Its one of those useless but [amusing Linux commands][14].
![terminator htop neofetch cmatrix][15]
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][16].
### Conclusion
I believe all terminal emulators support tabbed interface. But youll have to switch between the tabs and its not convenient when you have to keep an eye on multiple sessions simultaneously.
Terminator may not look as good as [Blackbox][17] or [GNOME Console][18]. But it has features that seasoned Linux users love.
It serves a purpose that may not what every Linux user needs or wants. I leave it up to you to decide if it is worth your time.
--------------------------------------------------------------------------------
via: https://itsfoss.com/terminator/
作者:[Anuj Sharma][a]
选题:[lkxed][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/anuj/
[b]: https://github.com/lkxed
[1]: https://itsfoss.com/wp-content/uploads/2022/11/gnu-screen.webp
[2]: https://linuxhandbook.com/tmux/
[3]: https://linuxhandbook.com/screen-command/
[4]: https://itsfoss.com/wp-content/uploads/2022/11/terminator-htop-neofetch-cmatrix.png
[5]: https://itsfoss.com/linux-terminal-emulators/
[6]: https://github.com/gnome-terminator/terminator
[7]: https://itsfoss.com/wp-content/uploads/2022/11/terminator-htop-multiple.png
[8]: https://itsfoss.com/wp-content/uploads/2022/11/terminator-default-window.png
[9]: https://itsfoss.com/wp-content/uploads/2022/11/terminator-right-click-option.png
[10]: https://itsfoss.com/use-htop/
[11]: https://itsfoss.com/wp-content/uploads/2022/11/terminator-htop.png
[12]: https://itsfoss.com/using-neofetch/
[13]: https://itsfoss.com/wp-content/uploads/2022/11/terminator-htop-neofetch.png
[14]: https://itsfoss.com/funny-linux-commands/
[15]: https://itsfoss.com/wp-content/uploads/2022/11/terminator-htop-neofetch-cmatrix.png
[16]: https://gnome-terminator.readthedocs.io/en/latest/
[17]: https://itsfoss.com/blackbox-terminal/
[18]: https://itsfoss.com/gnome-console/