Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Keyboard shortcut CTRL + ALT + T opens a new terminal window on Linux. By default it opens 1 new terminal window.

  1. Is there a way how to customize how many new tabs are going to be opened ? e.g. by using this shortcut it will open 2 tabs by default

  2. What is the right keyboard shortcut to open a new tab in existing terminal ?

    • I want to have 2 tabs opened and switch between them with CTRL + Page up
share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

gnome-terminal is the default terminal application on Ubuntu. It does have a command line option that should help:

--tab    Open a new tab in the last-opened window with the default profile

so you could create a custom keyboard shortcut with the command

gnome-terminal --tab

If you wanted to open two tabs you could create a script file like:

#!/bin/sh
gnome-terminal --tab
gnome-terminal --tab

Then call that script file from your keyboard shortcut.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.