152

Is there a hotkey to switch between tabs in Ubuntu's native terminal app? I'm using the netbook version of ubuntu.

Jorge Castro
  • 71,754
mikes mith
  • 1,521

7 Answers7

184

You can also use Ctrl+PgUp/PgDn to go to previous/next tab.

Eliah Kagan
  • 117,780
xangua
  • 7,217
73

You mean gnome-terminal?

To switch between tabs you can use Alt-n, where n is the tab ordinal number.

  • Alt+Maj+n if using an azerty keyboard, caps-locked or not...

By the way, this works the same in Gedit.

Eliah Kagan
  • 117,780
enzotib
  • 93,831
16

I'm guessing you mean the default distributed (pre-installed) gnome-terminal.

You can set your own shortcuts easily, just go to menu Edit>Keyboard Shortcuts...

gnome-terminal keyboard shortcuts settings as seen on ubuntu 12.04

Bonus tip: If you wanna take a look to the real "native terminal" or tty (teletype interfase) just hit Ctrl+Alt+F1 (It works with almost any Function key), and don't panic, you can come back to the "graphical interfase" by hitting Ctrl+Alt+F7

JorgeArtware
  • 3,527
  • 1
  • 21
  • 23
8

Simple and standard for all:

for switching/moving tabs:

Ctrl + pg up

or

Ctrl + pg dn

for positioning tabs (not switching):

if you want to position tabs, but not switch/move. is useful when too many tabs are open in web browser and or terminal and you want to group/lineup tabs. you can do this.

CtrlShift + pg up

or

CtrlShift + pg dn

Pro Tip:

try this in your browser tabs. and see what happens.

  • 1
    This has started inserting ;5~ for me lately instead of switching tabs. Any idea what would cause that? – hughes Oct 04 '16 at 07:30
  • it does happens when a process you or some other application started did not left the terminal and while you press other keys it prints some odd characters. – Kaleem Ullah Oct 04 '16 at 07:40
  • This works in some Editor too, e.g Geany. The switch also works in IDEA, though positioning doesn't. – Eric Mar 05 '21 at 22:48
5

For anyone using Konsole, that comes with Kubuntu (or KDE), the shortcut is -

Shift+, Shift+

Anwar
  • 76,649
tobias88
  • 51
  • 1
  • 1
0

Alt + Shift + n, where n is the tab number starting from 1, works for me on Ubuntu 18.04 with Gnome Desktop Environment.

singrium
  • 6,880
0

For the MacBook Pro (I suppose it's the same with other macs) running Ubuntu on VMWare there are two options:

  1. With the large Apple Magic Keyboard with Numeric Keypad, use the arrows below F15 (don't know their official names, but I now believe they're the Page Up/Down keys already mentioned) with CTRL, but not the regular cursor/arrow keys at the bottom of the keyboard:

control+ or control+

  1. With the built-in laptop keyboard or with the external keyboard use the function key, plus control, plus the regular up/down keys:

fn+control+ or fn+control+

In other words, option 2 should work in all cases, but if you have the large keyboard there's an additional convenient shortcut.

By the way, both options also allow switching between Google Chrome and Opera tabs. Haven't tested with Firefox yet.

Nagev
  • 674