How to Change the Default Terminal in Ubuntu

The terminal (or more accurately, terminal emulator) is a crucial part of any Linux system. It allows you to access your Linux systems through a shell. There are several terminal applications on Linux.

Most of the desktop environments have their own implementation of the terminal. It may look different and may have different keyboard shortcuts.

For example, Guake Terminal is extremely useful for power users and provides several features you might not get in your distribution’s terminal by default.

You can install other terminals on your system and use it as default that opens up with the usual keyboard shortcut of Ctrl+Alt+T.

Now the question comes, how do you change the default terminal in Ubuntu. It doesn’t follow the standard way of changing default applications in Ubuntu then how to do it?

Change the default terminal in Ubuntu

Change Default Terminal Ubuntu

On Debian-based distributions, there is a handy command line utility called update-alternatives that allows you to handle the default applications.

You can use it to change the default command line text editor, terminal and more. To do that, run the following command:

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

It will show all the terminal emulators present on your system that can be used as default. The current default terminal is marked with the 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 to enter the selection number. In my case, I want to use the GNOME terminal instead of the one from 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

I hope you find this quick little tip useful. Your questions and suggestions are always welcome.

About the author
Abhishek Prakash

Abhishek Prakash

Created It's FOSS 11 years ago to share my Linux adventures. Have a Master's degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie detective mysteries πŸ•΅οΈβ€β™‚οΈ

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

It's FOSS

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.