Ubuntu’s Terminal is a great tool for managing your computer’s tasks. But it can be difficult to add tabs to the Terminal. Here are some tips to help you add tabs to Ubuntu’s Terminal:
- Open Ubuntu’s Terminal and type “sudo add-tab”.
- When the Terminal window opens, type “tabs” and press enter.
- The Terminal window will show a list of tabs that have been added. To close the Terminal window, type “exit”.
If you work a lot in the command line, you probably keep more than one Terminal window open at once. However, instead of having separate windows, you can condense all your Terminal sessions onto one window using tabs.
RELATED: How to Enable Local Menus in Ubuntu
We’ll show you how to open multiple Terminal sessions as tabs in Ubuntu.
To begin, open a Terminal window and select “Preferences” from the “Terminal” menu. The menu bar may either be on the title bar of the Terminal window or on the top panel on the desktop, depending on whether global menus are enabled in Ubuntu.
On the Preferences dialog box, make sure the General tab is active. Then, select “Tab” from the “Open new terminals in” drop-down list.
Click “Close” to accept the change and close the Preferences dialog box.
To open a new Terminal session on a new tab, select “New Terminal” from the “Terminal” menu.
A second Terminal session is opened on a new tab and the original session is also available on a tab. The name on the tab includes the current directory you’re in on that tab.
NOTE: Even when the Open new terminals in option is set to Tab, pressing Ctrl+Alt+T opens a new Terminal session in a new window, not a new tab.
Once you have two sessions open, you can open additional sessions using plus button to the right of the tabs.
When you add a new tab, whether it be through the Terminal menu or using the plus button, the new session is open to the same directory you were in on the tab that was currently active at that time.
There are several ways to switch among tabs. You can click on a tab to activate it, of course. You can also use the down arrow button on the far right to select the session you want or press Alt+1, Alt+2, etc. on your keyboard to jump to a specific tab. The tabs are numbered from the left, starting at 1.
If you want change the order of the tabs, you can click on a tab and drag it to another location on the tab bar. When you move tabs, they’re renumbered, so using the Alt+1, Alt+2 keyboard shortcuts to switch among the tabs will account for the new tab order. For example, if you move the third tab to the second position, Alt+2 would then activate what used to be the third tab.
To close a tab, click the “X” button on the right side of the tab.
You can also move and close tabs by right-clicking on a tab and selecting an option from the popup menu.
To close the Terminal window, and all the tabs, click the “X” button in the upper-left corner of the window.
The tabs are not saved when you close the Terminal window. However, the Open new terminals in setting is preserved and you can open multiple sessions on tabs the next time you open a Terminal window.