The gnome-terminal is one of the finest terminals available for the Linux operating system. It's rock-solid, does it's job, and has a ton of features you might not find in other terminal emulators. One of those features is the Profile. A profile is a way to have multiple terminal configurations at once. You can create as many as you like and switch back and forth on the fly. But why have this feature? Is it really necessary? I can show you a few reasons why the gnome-terminal profile offers you multiple profiles.
In this article I will walk you through the creation of new profiles and show you why you might want them.
First and foremost, this article assumes you actually use the terminal and assumes you use it a lot. The pedestrian user of the terminal might not see a need for multiple profiles for a terminal window. But if you use the terminal a lot, and for various reasons, you might see how multiple profiles can make a difference.
Creating new profiles
Let us first take a look at how profiles are created. To create (or edit) a profile click Edit > Profiles. This will bring up a new window (see Figure 1) where you can add, edit, or delete profiles at will.
As you can see, in Figure 1, I have two current profiles - default and "no trans". My default profile fits in with my current desktop scheme (RGBA, with heavy transparency). There are times when I need to more closely evaluate text (such as when viewing top or combing through a configuration file. For those times I switch to the "no trans" profile which is a non-transparent profile I created.
To create a new profile click the New button. When you do this a small window will open where you give your new profile a name and choose which of your current profiles to base the new profile on. Let's say, for the sake of example, I want to create a profile for any time I am using the terminal as the root user. This can come in very handy (and keep you from doing something you don't want to do). For this I am going to call the profile "Root" and base it on "no trans". Once you've done that the main profile editor window will appear (see Figure 2) .
In this new window you can change quite a bit for your profile. For a profile to work as the administrative user you might want to do something like create a white background with red text, or a red background with black text. For such an instance I like to alter the Title and command to ensure there is no mistaking I am using the administrative user. To do this click on the Title and Command tab and then change the Initial title to be something like ROOT User: USE CAUTION. You can then select to prepend this title if the terminal command sends it's own title (which is often the case).
The new "root" profile will look something like that in Figure 3.
This is simple, and can be done on the fly. All you need to do is click Terminal > Change Profile and select the profile you want.
Make use of the gnome-terminal profiles and your life will be much easier. There are a lot of reasons why you would want to use them and tons of modifications you can make to them.
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.