Home How To How to Add Tabs to Ubuntu’s Terminal

How to Add Tabs to Ubuntu’s Terminal

by Unallocated Author

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 in ubuntu terminal.

We’ll show you how to create tabs in ubuntu terminal.

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.

tabs-in-ubuntu-terminal-1

On the Preferences dialog box, make sure the General tab is active. Then, select “Tab” from the “Open new terminals in” drop-down list.

tabs in ubuntu terminal

Click “Close” to accept the change and close the Preferences dialog box.

tabs-in-ubuntu-terminal-3

To open a new Terminal session on a new tab, select “New Terminal” from the “Terminal” menu.

tabs-in-ubuntu-terminal-4

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.

tabs-in-ubuntu-terminal-5

Once you have two sessions open, you can open additional sessions using plus button to the right of the tabs.

tabs-in-ubuntu-terminal-6

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.

tabs-in-ubuntu-terminal-7

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.

tabs-in-ubuntu-terminal-8

 

To close a tab, click the “X” button on the right side of the tab.

tabs-in-ubuntu-terminal-9

You can also move and close tabs by right-clicking on a tab and selecting an option from the popup menu.

tabs-in-ubuntu-terminal-10

To close the Terminal window, and all the tabs, click the “X” button in the upper-left corner of the window.

tabs-in-ubuntu-terminal-11

The tabs are not saved when you close the Terminal window. However, the Open new terminals in setting is preserved and you can open tabs in ubuntu terminal the next time you use it.

You may also like