How to zoom in and zoom out terminal console in linux
Last Updated :
25 Sep, 2023
Linux is a Debian-based Operating system used by many professionals and other people for various purposes. Mainly Linux is used for Penetration testing and Vulnerability assessment. Windows systems often interact with GUI (graphical user interface) but in Linux, we use a terminal console more to interact with the system and to do things normally. In this article, we will see how we can use the Zoom in and Zoom out features in this terminal console of Linux. We will see what the keyboard shortcuts are to zoom in and out and also see how to do so with the terminal itself.
How to Zoom in and Zoom out in the Linux Terminal?
For doing zoom in and zoom out in the terminal we have two different methods. We have listed this method below:
- Method 1: Using Shortcut Keys
- Method 2: Using the Inbuilt Functionality of the Terminal
Let's explore both the methods with step-by-step execution:
Method 1: Using Shortcut Keys
Step 1: To use Zoom in and Zoom out in the terminal you can use keyboard shortcuts, to do so first open your terminal by the taskbar, or you can search for it in applications. Press the below Keyboard Shortcut to open the terminal in Linux.
CTRL + ALT + T
Normal text in the terminal
Step 2: Now we can see that the terminal has a line with the current working directory and username written, We will use shortcuts to Zoom in first, On your keyboard press CTRL + '+' (+ key is the key used for addition from your Numpad). Once you press the keys the terminal will be zoomed in. Below we have added a video demonstration of in process using the shortcut key.
CTRL + '+'
Text zooming in using a shortcut
Step 3: Now for Zoom out we will use the shortcut CTRL + '-' (- is the key used for subtraction from numpad), Once you press it you will see that the text on the terminal is zoomed out. Below is a practical demonstration of zooming out the terminal console in Linux.
CTRL + '-'
Zoom out text in the terminal using a shortcutMethod 2: Using the Inbuilt Functionality of the Terminal
Step 1: To use inbuilt zoom-in and zoom-out functionality, first navigate to the terminal and select the Edit Tab from the menu bar. You can refer to the below screenshot for navigation.
Clicking on the Edit Tab on the Menu Bar
Step 2: After clicking on the Edit Tab, multiple sub-options will be displayed. From these sub-options, we need to select Zoom in option to perform zooming into the terminal. After clicking on the option, you can see in the below video file, that our zooming-in is performed successfully.
Selecting Zoom in the optionStep 3: From the drop-down apperated after clicking on the Edit Tab option, we can select the option of Zoom out to perform zooming out in the terminal. We have done the zoom-out process in the below demonstration.
Selecting Zoom out optionWe can see we have both options to zoom in and zoom out, Click on any of them to apply the functionality with each click, it will perform zoom in or zoom out on our terminal, and the outputs will be the same as shown in the above example.
How to Zoom in and Zoom out in the Ubuntu Terminal?
To use Zoom in and Zoom out functionality in Ubuntu is similar to what we have done in Linux above, the main difference is the environment and the terminal sometimes different distribution uses different terminal consoles. So let's see how to use Zoom functionality in Ubuntu.
There are 2 methods to use it:
- Method 1: By keyboard shortcuts
- Method 2: By inbuilt functionality within the terminal
Method 1: By using Keyboard Shortcut in the Ubuntu terminal
Step 1: Open your Ubuntu instance and open the terminal on it. let's just write a simple text like Hello from GeeksforGeeks !, and we will see how to zoom in and zoom out.
Terminal Opened on Ubuntu
Step 2: Press CTRL + '=' to zoom in on the text and increase its size on the terminal, as you can see in the below output.
CTRL + '='
Zoom in on Ubuntu using Shortcut
Step 3: Press CTRL + '_' to zoom out the text and decrease its size on the terminal, as shown in below output example below.
CTRL + '_'
in the above command _ key is the key that is also the - key, In Ubuntu by default shortcuts for zoom in and zoom out are Ctrl++ where + is = key and Ctrl-- where - is _ key.
Zoom out in Ubuntu using the shortcut
Method 2: By using the Inbuilt functionality of the Ubuntu terminal
Step 1: Keep your terminal open, you can clear the screen with a clear command. let's type the same text we have written above Hello from GeeksforGeeks!
Opening Terminal in Ubuntu
Step 2: Now you can see a 3-line bar box (More Options) in the top right corner of the terminal, You can click it to see the options it has.
Clicking on More Options Icon
Step 3: We can see that the menu has zoom-in and zoom-out functionality, you can simply use it by clicking on it as per your requirement for text size. below are the outputs for both of the functions.
Selecting the Zoom In option
Select the Zoom out icon from the options.
Selecting Zoom out option
Question 2: What if my keyboard shortcuts for zooming in and out are not working in the terminal?
If keyboard shortcuts are not working for your terminal emulator, then it might be the case that your terminal is not configured to allow zoom-in, You can change this to allow your terminal to zoom in by referring to the documentation of your terminal.
Question 3: Can I zoom in and out of the terminal console on a remote server?
Yes you can zoom in and out on a remote server just make sure that your terminal supports the remote connections. once you are connected you can use your normal keyboard shortcuts like always.
Question 4: What is the difference between zooming in and out of the terminal console and resizing the terminal window?
Zooming in and out of the terminal console changes the size of the text while resizing the terminal window changes the size of the terminal window itself. when you change the size of the terminal window all of the aspects of the terminal will increase in size like the title, options bar, logo, and all. but in Zoom in case it only affects the text on the terminal.
Question 5: How do I change the default zoom level for the terminal console?
The default zoom level for the terminal console is 100%. You can change the default zoom level by editing the terminal emulator's configuration file. the location of the configuration file depends upon your terminal.
Conclusion
We have seen how you can use zoom functionality within the terminal of Linux with the help of inbuilt and keyboard shortcuts as well. these functionalities are pretty simple to use and implement. you can make your zoom-in and out function using any programming language even with bash script. and you can explore much more with the title bar of the terminal, there are many other functionalities and functions to be used.
Similar Reads
How Can I do Ctrl + C in the Linux Terminal
If youâre trying to copy text from the Linux terminal, pressing Ctrl + C might not give you the results you expectâitâs designed to stop commands, not copy text. Instead, to copy from the terminal, use Ctrl + Shift + C. This shortcut ensures you can easily select and copy output or commands without
11 min read
How to Customize Bash Colors and Content in Linux Terminal Prompt
If you are using the Linux operating system, that means you use the CLI most of the time. And do more work on the terminal. By default, most Linux Operating systems provide you the bash shell. Shell provides the interface between the user and kernel and executes commands. In this article, we are goi
9 min read
How to Open Terminal in Linux?
The Shell or Command Prompt are common name for the Linux Terminal. The terminal was designed as a Linux File Browser, and this function is still carried out using it. You may traverse your files and undo changes made by using the Terminal as a File Browser. However, the very first step will be to O
4 min read
What is a Controlling Terminal in Linux?
Most of you should be aware of the Terminal in Linux which is a Command-line Interface. However, there are very few individuals who know about the existence of Linux Controlling Terminal.If you are a System Administrator, or a user who interacts with Linux Systems, then knowing about Controlling the
5 min read
How to Clear the Terminal History in Linux
The Linux Terminal stores every command you execute in a history file like .bash_history for Bash or .zsh_history for Zsh, making it convenient to access previous commands. However, this history can become a privacy or security issue, especially when dealing with sensitive tasks or working on shared
6 min read
How to Print Colored Text to the Linux Terminal
Printing colored text to the Linux terminal can greatly enhance the visual appeal and readability of your command-line applications or scripts. While the terminal traditionally displays text in monochrome, incorporating colors can provide crucial context, highlight important information, or simply a
5 min read
How to Make Linux Terminal look Awesome
In this article, we will install and configure some themes and plugins to tweak our Linux terminal for better productivity and a fancier look. These features include autocompletion, autosuggestion, command-line search, syntax highlighting, and better support for git and environment managers. Zsh The
3 min read
How to Make Custom Commands for Linux Terminal?
With commands, users can communicate with the operating system via the Linux terminal, a handy tool. Although the terminal has several pre-defined commands, you can improve productivity and optimize processes by writing your custom commands. This article explains how to write and use custom commands
4 min read
How to Install and Use Alacritty Terminal Emulator in Linux?
Alacritty is a cross-platform terminal emulator with GPU acceleration. It's a terminal emulator for OpenGL written in the Rust programming language. Alacritty is the fastest and lightest Terminal emulator in nature, thanks to its OpenGL renderer and high throughput parser. Alacritty Terminal emulato
2 min read
How to Change the Output Color of Echo in Linux
When working with a computer, some users may encounter a situation where they need to output text in a different color. The colors we are familiar with by now will have been worked out for our particular machine and thus can be replaced easily if needed. Echo is a Linux command that can be used to c
9 min read