Keyboard shortcut CTRL + ALT + T opens a new terminal window on Linux.
By default it opens 1 new terminal window.
Is there a way how to customize how many new
tabsare going to be opened ? e.g. by using this shortcut it will open 2 tabs by defaultWhat is the right
keyboard shortcutto open a new tab in existing terminal ?- I want to have 2 tabs opened and switch between them with CTRL + Page up
4 Answers
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 profileso you could create a custom keyboard shortcut with the command
gnome-terminal --tabIf you wanted to open two tabs you could create a script file like:
#!/bin/sh
gnome-terminal --tab
gnome-terminal --tabThen call that script file from your keyboard shortcut.
5Run gnome-terminal command and add as many --tab options as you need.
For instance, gnome-terminal --tab --tab --tab will get you a new window with three tabs. Assign the command to a keyboard shortcut to achieve what your goal.
To open a new tab interactively use Ctrl+Shift+T.
1CTRL + ALT + T (Open New Terminal) CTRL + SHIFT + T (Open New Tab in the terminal(Note you should not present on browser while executing this shortcut otherwise last closed browser tab will be opened)
gnome-terminal (open New Terminal) gnome-terminal --tab (open New tab in the terminal)
ALT + (tab number) ex: ALT + 1 (change to First Terminal tab) Alt + 2 (change to second Terminal Tab)
1From the existing gnome terminal, right click and select Preferences, you will see the keyboard shortcuts settings on Global -> Shortcuts.