How to Open Multiple Terminals in Ubuntu
Last Updated :
13 Mar, 2024
As a programmer or developer, we may feel insufficient to use only one terminal or window. We need more than one terminal to easily navigate through code files or do another installation task. This problem is also faced by the system administrators as well as the DB administrators because we may need more than 2 terminals to handle the system efficiently. As in Ubuntu or Linux, the terminal doesn't have any tabs like a web browser, so we may need to open multiple terminals in Ubuntu. In this article, we will see the methods to open multiple terminals in Ubuntu. We will discuss all the methods with detailed steps and output screenshots.
How to Open Multiple Terminals in Ubuntu?
Here, we will see the most effective and modern methods through which we can open multiple terminals in Ubuntu. There are many types of methods, but in this article, we will see the most important and efficient methods. Below we have listed the methods that we will discuss in this article:
- Method 1: Opening Multiple Terminals Using Keyboard Shortcuts
- Method 2: Opening Multiple Terminals Using 'gnome-terminal' Command
- Method 3: Opening Multiple Terminals Using Multiplexers
- Method 4: Opening Multiple Terminals Using Shell Script
- Method 5: Opening Multiple Terminals Using Built-in Multi-tab functionality
We will see all the above methods in a proper step-by-step manner.
Method 1: Opening Multiple Terminals using Keyboard Shortcuts
Step 1: We can open the terminal on Ubuntu using Keyboard Shortcut. To open the single terminal we can use the shortcut:
Ctrl + Alt + T
How to open multiple terminals in ubuntuStep 2: If we need to open multiple terminals, then we can repeatedly press the keyboard shortcut and open the multiple terminals as much as we want. Below we have added a screenshot in which when we are pressing the keyboard shortcut repeatedly multiple terminals in Ubuntu are opened.
Ctrl + Shift + N
Open multiple terminal Method 2: Opening Multiple Terminals Using 'gnome-terminal' Command
Step 1: For opening the multiple terminals, we can use the inbuilt command. So firstly, we will need to open the single terminal. We can use the shortcut from the above method and open the initial terminals.
Open single terminal Step 2: Now, in the terminal, we need to execute the below command to open the multiple terminals as much as we want. Below we have added the screenshot, describing the practical guide to open multiple terminals using the inbuilt command.
gnome-terminal
gnome-terminal
Method 3: Opening Multiple Terminals using Multiplexers
Multiplexers are the utilities that help us to split the main terminal vertically and horizontally. There are different types of multiplexers:
- tmux
- Konsole
- Screen
- Terminator
- Tilix
As all the Multiplexers working is similar, we can use any of the multiplexers to open multiple terminals in Ubuntu. For this article, we will use Tmux multiplexer.
Step 1: As the multiplexer is an external utility, we need to initially install it on our system, so to install it on our system we first need to update the repository.
sudo apt update
sudo apt updateStep 2: After updating the repositories, we need to execute the below command in the terminal and install the Tmux multiplexer on our system.
sudo apt-get install tmux
-min.png)
Step 3: After installation is completed, we need to run the below command to start the tmux multiplexer instance. Execute the below command in the terminal.
tmux new -s dev
tmux new -s devStep 4: For opening the terminal in Hormizaonatal we can use the below Keyboard Shortcut:
CTRL + B + %
CTRL + B + %Step 5: For opening the terminal in Vertical Layout we can use the below Keyboard Shortcut:
CTRL + B + "
Vertical LayoutMethod 4: Opening Multiple Terminals Using Shell Script
If we want that, multiple terminals should be automatically opened without doing any manual work like using shortcuts every time or installing any external multiplexers. We can automate this by writing a script and running it once, so the multiple terminals will get opened automatically.
Step 1: Open any text editor in Ubuntu like Vim, Vi, Nano, etc., and write the below script in it.
#!/bin/bash
# Open multiple terminal windows
gnome-terminal --tab -- bash -c 'echo "Terminal 1"; exec bash'
gnome-terminal --tab -- bash -c 'echo "Terminal 2"; exec bash'
gnome-terminal --tab -- bash -c 'echo "Terminal 3"; exec bash'
Step 2: After writing the script, save the file with the ".sh" extension. Open the terminal using the keyboard shortcut and make the script executable by executing the below command:
scriptchmod +x demo.sh

Step 3: Now, by using the below command run the script. After running the script, the terminals will be automatically opened. We have included a screenshot in which multiple terminals are opened by executing the script.
./demo.sh
./demo.shMethod 5: Opening Multiple Terminals Using Built-in Multi-Tab Functionality
Another way to use multiple terminals in Ubuntu is using its built-in Multi-Tab feature. Unlike previous shortcuts that open new windows or uses shell scripts to provide multi-tabbing, this feature allows us to use multiple terminal tabs within the same terminal window without any scripts.
Step 1: Open your terminal using the application menu or the shortcut.
Ctrl + Alt + T
Ctrl+Alt+T to open terminalStep 2: Press the key combination to open a new terminal tab within the same window, you can repeat this for as many tabs as you require.
Ctrl + Shift + T
Open New Tabs using Ctrl+Shift+TStep 3: Use tabs as usual and use the following key combination to close any of the newly created tab, if needed.
Ctrl + Shift + W
Close existing tabs using Ctrl+Shift+W
Conclusion
In conclusion, in this article, we have seen opening multiple terminals in Ubuntu is an easy process that can be done using keyboard shortcuts, inbuilt commands, multiplexers, and also the shell script. Having multiple terminals open for the work can increase productivity and also the task can be done easily. Developers or Administrators can perform various tasks on these multiple terminals and increase the ease of work. We can choose any of the above methods to open multiple terminals in Ubuntu.
Similar Reads
How To Open Gparted Terminal in Ubuntu?
Gparted is a GUI application that is useful for creating, editing, and deleting disk partitions. Gparted has a GUI interface which makes this tool easy to use for individuals who prefer GUI interfaces rather than the command line. How to install Gparted on LinuxStep 1: Update the system sudo apt-get
6 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
How to Fix Terminal in Ubuntu?
Encountering issues with the Terminal in Ubuntu can disrupt your workflow and productivity. Whether the Terminal is not opening, displaying errors, or behaving unexpectedly, these problems can be frustrating. This guide will walk you through the most common solutions to fix Terminal issues in Ubuntu
3 min read
How to Open a TextEditor in an Ubuntu Terminal
Ubuntu and other Linux distributions using the GNOME desktop environment come pre-installed with a default text editor known as the GNOME Text Editor, commonly referred to as Gedit. Gedit is a user-friendly, lightweight, and powerful text editor with rich features, making it an ideal choice for casu
3 min read
How to Use Multiple Screens on PyGame?
In this article, we are going to know how to use multiple screens on PyGame. Multiple screens are one of the best features of so many apps and games. This feature of an app or game allows users to navigate from one tab to another tab of the game within the same window and screen. This flexible way o
9 min read
How to Share Linux Terminal Using Teleconsole?
You already know about many popular remote desktop sharing applications. But this is very different because this is only shared with the terminal, not the full desktop. Here we see how to use teleconsole and how to share your terminal with your friend. Teleconsole is a tool that can allow you to sha
2 min read
How to Run C program in Ubuntu
Learning to run a C program in Ubuntu is a great first step for anyone starting their programming journey or switching to a Linux-based system. Ubuntu offers a clean and powerful environment to write, compile, and execute C code all from the terminal.In C, this guide will show you how to get started
4 min read
How to Take Screenshots in Ubuntu?
Taking screenshots is an essential task for many users, whether you're documenting a process, saving important information, or sharing your screen with others. If you're using Ubuntu, there are several ways to take screenshots in Ubuntu efficiently. This article will walk you through different metho
5 min read
How to Run Multiple NPM Scripts in Parallel?
Running multiple npm scripts in parallel can be particularly useful when you need to perform several tasks simultaneously, such as starting a server, running a build process, and monitoring file changes. This can save time and streamline your development workflow. Hereâs a comprehensive guide on how
3 min read
How to Use Terminal in Sublime Text Editor ?
Well in Visual Studio Code we get a direct Option for opening Terminal, Unlike Sublime Text editor. Sublime is Simple and free to use, Light on memory, and can easily work with multiple projects. In this article, we will see how to use Terminal in a Sublime Text Editor. This article will answer all
3 min read