How to install multiple terminals in Ubuntu and change the default terminal

And most desktop environments have their own terminals to achieve, if there are multiple terminals on your Linux system applications. It may look different, and may use different shortcuts.

For example, perfectly handsome terminal Guake Terminal, it provides some features may not be available by default in the release terminal.

You can install other terminals on the system and use it as the default terminal, using the usual keyboard shortcut Ctrl + Alt + T to open.

How to install multiple terminals in Ubuntu and change the default terminal

We can also install an enhanced version of Terminator terminal in Ubuntu, install the following commands:

How to install multiple terminals in Ubuntu and change the default terminal

How to install multiple terminals in Ubuntu and change the default terminal

The effect is as follows:

How to install multiple terminals in Ubuntu and change the default terminal

Terminator plurality of terminals can be started in the same window in Ubuntu. Freely in a divided region to create a new window terminal, each terminal stretch resize the mouse, the user needs to operate a plurality of terminals simultaneously is very convenient. At the same time when operating multiple servers without switching terminal window in a window you can get, really convenient.

Zsh install a terminal Ubuntu, install command as follows:

How to install multiple terminals in Ubuntu and change the default terminal

After installing the landscaping is the use of curl installed oh-my-zsh

How to install multiple terminals in Ubuntu and change the default terminal

After installing the following:

How to install multiple terminals in Ubuntu and change the default terminal

There are traditional shell completions in front of zsh basic can be off work.

Replace bash, zsh as the default shell set

If you want to switch back bash:

View the system which shell

Now the question is, so many Linux installed terminal, how to change the default terminal system in Ubuntu yet. There is no standard way to change the default applications in Ubuntu, do not worry, see the following article?

In Debian-based distributions, there is a handy command-line utility called update-alternatives, it allows you to manipulate the default application.

You can use it to change the default command-line text editor terminals. To do this, run the following command:

sudo update-alternatives --config x-terminal-emulator

It will display all terminals present on the system, the current default terminal marked with an asterisk.

[linuxidc@linux:~/www.linuxidc.com]$ sudo update-alternatives --config x-terminal-emulator
[sudo] linuxidc 的密码: 
有 6 个候选项可用于替换 x-terminal-emulator (提供 /usr/bin/x-terminal-emulator)。

  选择       路径                           优先级  状态
------------------------------------------------------------
  0            /usr/bin/terminator               50        自动模式
* 1            /usr/bin/gnome-terminal.wrapper   40        手动模式
  2            /usr/bin/koi8rxterm               20        手动模式
  3            /usr/bin/lxterm                   30        手动模式
  4            /usr/bin/terminator               50        手动模式
  5            /usr/bin/uxterm                   20        手动模式
  6            /usr/bin/xterm                    20        手动模式

要维持当前值[*]请按<回车键>,或者键入选择的编号:5
update-alternatives: 使用 /usr/bin/uxterm 来在手动模式中提供 /usr/bin/x-terminal-emulator (x-terminal-emulator)

How to install multiple terminals in Ubuntu and change the default terminal

You have to do is enter the selected number.

Automatic mode and manual mode

You may have noticed that in automatic mode and manual mode output update-alternatives command.

If you select automatic mode, when you install or remove software packages, the system may automatically determine the default application. The decision of the affected priority number (as illustrated in the above command output).

Assuming that the two terminals installed on your system, and delete the default terminal. Now, your system will check which terminal is in automatic mode. If you have more, it will select the highest priority as a default terminal.

How, this little trick is useful, I hope you enjoy and share the circle of friends. 

Guess you like

Origin www.linuxidc.com/Linux/2020-02/162459.htm