Nowadays, Linux users can perform various operations through programs with a high-performance graphical interface. However, there are several reasons to use the Linux command line called Terminal.
- Through the terminal, you can access many powerful native Linux commands, as well as command line functions of many desktop applications.
- You can install software on Ubuntu much more easily through the command line than the graphical installation alternative.
- You may have seen that many online help will tell you how to solve the problem through the command line. No matter which desktop environment you are using or which version of Linux you are using, the Terminal commands are usually the same.
The easiest way to access the Terminal is to use a shortcut Ctrl + Alt + T , You will notice that each time you launch a new terminal, it opens in a separate window. The Terminal, however, gives you the preference to start new Terminal sessions as tabs in the same terminal window. Using this tabbed interface, you can increase your productivity in the same way as using tabs in modern Internet browsers.
Enable tabs in Terminal
Launch Terminal and select preferences from edit menu as follows:
You can see the following preferences dialog; please make sure Total tab selected. From “ Open new terminals in : »Select tabulation When you click close Button, your necessary changes will be confirmed, and your terminal will now work in a tabbed user interface.
Please note that you can see the menu bar at the top of the terminal or on the top panel of the Linux desktop (if you have enabled global menus).
Adding a New Tab
To add a new terminal as a tab to an existing terminal window, select New Terminal from files menu as follows:
You can see a new tab opened with the previous tab on which its session is running.
Note. If you want to launch a new terminal window, and not open it on a tab, press Ctrl + Alt + T
When more than one tab is open in the Terminal, you can add more tabs by simply clicking plus button located at the top right of the tabs. New tabs open in the same directory as the previous “Terminal” tab.
Switch between tabs
You can switch from one tab to another in the following ways:
- Clicking on a specific tab to make it active.
- Click the down arrow on the right side of the tabs and select the tab you want to switch to.
- All tabs are assigned a number from 1 to the number of open tabs. Label Alt +[number of the tab] will lead you to this tab.
You can use one of the following methods to reorder your tabs:
- Right-click the selected tab and click Move terminal left or Move terminal to the right from the menu.
- Drag tabs left or right.
Please remember that now the tabs will be in a new order and they will be assigned new tab numbers. You will use these new numbers to switch between tabs using Alt +[number of the tab] the control.
You can close a tab in the following ways:
- Pressing X tab button.
- Select a tab and then click Close tab option from the File menu,
Remember that when you close the terminal window, your tabs are not saved. However, the terminal will still be enabled to display terminals in tabs the next time the terminal starts.
Having learned how to work with tabs, you can use the additional speed and ease of use that the Terminal gives you. When you start working with multiple tabs, you will see that it is very simple to add, close, rearrange, and switch tabs to increase productivity. Follow this guide to see how, instead of opening a new Terminal for all your operations, it is a smart option to open and work on tabs in one window.
Working with multiple terminal tabs in Ubuntu