How to Change The Default Terminal in Ubuntu?

Source: Internet
Author: User
Keywords ubuntu terminal terminal in ubuntu commands ubuntu launch terminal
How to change the default terminal in Ubuntu. It does not follow the standard way of changing the default application in Ubuntu, what should I do?
Alibaba Cloud Simple Application Server:  Anti COVID-19 SME Enablement Program
$300 coupon package for all new SMEs and a $500 coupon for paying customers.

Terminal is a key part of Linux system. It allows you to access the Linux system through the shell. There are multiple terminal applications (technically called terminal emulators) on Linux.

Most desktop environments have their own terminal implementation. Their appearance may be different, and may have different shortcut keys. For example, Guake terminal is very useful for advanced users, it provides some functions that may not be available in the default terminal of the release.

You can install other terminals on the system and set them as the default, which can be opened with the shortcut key Ctrl+Alt+T.

Now the question is, how to change the default terminal in Ubuntu. It does not follow the standard way of changing the default application in Ubuntu, what should I do?

Change the default terminal in Ubuntu
In Debian-based distributions, there is a convenient command line program called update-alternatives that can be used to handle default applications.

You can use it to change the default command line text editor, terminal, etc. To do this, run the following command:
sudo update-alternatives --config x-terminal-emulator
It will display all the terminal emulators present on the system that can be used as default values. The current default terminal is marked with an asterisk.
abhishek@nuc:~$ sudo update-alternatives --config x-terminal-emulator
There are 2 choices for the alternative x-terminal-emulator (providing /usr/bin/x-terminal-emulator).

  Selection Path Priority Status
-------------------------------------------------- ----------
  0 /usr/bin/gnome-terminal.wrapper 40 auto mode
  1 /usr/bin/gnome-terminal.wrapper 40 manual mode
* 2 /usr/bin/st 15 manual mode

Press <enter> to keep the current choice[*], or type selection number:
All you have to do is enter the selection number. For me, I want to use the GNOME terminal instead of the terminal from the Regolith desktop.

Press <enter> to keep the current choice[*], or type selection number: 1
update-alternatives: using /usr/bin/gnome-terminal.wrapper to provide /usr/bin/x-terminal-emulator (x-terminal-emulator) in manual mode
Automatic mode vs manual mode
You may have noticed the automatic mode and manual mode in the output of the update-alternatives command.
If you choose automatic mode, the system may automatically determine the default application when installing or removing software packages. This decision is influenced by the priority number (as shown in the command output in the previous section).
Suppose you have installed 5 terminal emulators on your system and deleted the default emulator. Now, your system will check which emulators are in automatic mode. If there are more than one, it will choose the one with the highest priority as the default emulator.
I hope you find this little trick useful. Questions and suggestions are always welcome.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.