Do you use the terminal in Linux? If you use Linux long enough you will. And chances are, if you are using the terminal in Linux, you are using either the GNOME terminal or KDE's konsole. Each has their pros and cons and each has a lot of tricks tucked up inside their sleeves.
I have covered the gnome-terminal in a few ways (see my articles "Make gnome-terminal profiles work for you" and "Get to know Linux: gnome-terminal".) These articles either is an introduction or deals with a specific aspect of the tool. This time around, I want to highlight a few different tips and tricks that can help to make gnome-terminal even more useful and user-friendly.
Change that title
When you open up gnome-terminal you usually will see the hostname and the current working directory. Sometimes this just isn't much help. This is especially true when you have more than one terminal window open and you want to make sure you know which terminal you are working in. You can change this by clicking Terminal > Set Title. After you click this a small window will open where you can type the new terminal title. Once you save that title your gnome-terminal will display the configured title until you close and re-open the tool (upon reopening the title will revert to the default.)
Search the contents of an open file
The gnome-terminal tool includes it's own search feature. With an open file you can search that file with a string by clicking Search a new window will appear where you can enter the conditions for your search. Those conditions are:
This is a great way to help you work with larger configuration files such as smb.conf or httpd.conf.
There are reasons for zoom in and out. The biggest reason is accessibility. For those with vision impairments, zooming into the terminal window is a quick way to make the text in terminal large enough to see. To zoom use the following key combinations:
If you have trouble with the key combinations, click View > Zoom In or View > Zoom Out to control the zoom.
I'm not talking about switching from 2D to 3D (or d20). I'm talking about the size of your terminal. There are four pre-configured sizes you can easily switch to (for different usage.) If you click the Terminal menu entry you will see, near the bottom of the menu:
You can easily switch to one of those sizes by clicking on the size you want. When you open the terminal, it will open back to the default size.
There you have just a fraction of the tips and tricks that can be pulled off with gnome-terminal. There are plenty more where that come from and we will re-visit this topic. Until then, enjoy the CLI!
Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.
We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats (video ads) or subscription fees.
If you like our content, and would like to help, please consider making a contribution:
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.