Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I can open as many terminal tabs I want using Ctrl++Shift+T.

But for some reason, I'm not able to switch the tabs using Ctrl+PgUp and Ctrl+PgDown. So what is the shortcut-key to switch in between tabs.

I also want to know how to close any particular tabs using the shortcut keys.

I would be happy to know the answer.

Thanks in advance!!

share|improve this question

3 Answers 3

up vote 14 down vote accepted

You can switch the tabs using Ctrl+PgDn to next tabs and Ctrl+PgUp for the previous tabs.

Reordering can be done using Ctrl+Shift+PgDn and Ctrl+Shift+PgUp.

Also Alt+1 to Alt + 0 can be used to switch tabs starting from 1 to 10. Where Alt+1 is for 1st tab in terminal, Alt+2 is for 2nd tab ... Alt+0 is for 10th tab.

If more than 10 tabs are opened then you've to switch using the shortcut mentioned above. i,e Ctrl+PgDn and Ctrl+PgUp

To close any selected tabs use Ctrl+Shift+W

share|improve this answer
    
I'll check and let you know whether it's working or not. Currently I'm not able to check it. Thanks for your quick answer. –  Saurav Kumar Nov 16 '13 at 10:22
1  
Ctrl + Shift + PgUp/PgDn actually switching my tabs numbering. i,e 1st tab becomes 2nd and, 2nd becomes 1st. But others are working perfectly.. Thanks.. :D –  Saurav Kumar Nov 16 '13 at 14:06

gnome-terminal shortcuts can also be customized, which is very easy and useful, if you use different applications that ought to have set the same shortcut(s) [applies only to the current active application] for the same/similar function(s).

Example: Closing tabs with Ctrl+w shortcut in gnome-terminal and geany (text-editor)

In "gnome-terminal" under "Edit" -▸ "Keyboard Shortcuts" (see screenshots below) you can set your custom shortcuts.

If you use the same setup as shown below, and lets say you have three tabs open, you can simple switch between them with:

  • Alt+1 - Switch to Tab1
  • Alt+2 - Switch to Tab2
  • Alt+3 - Switch to Tab3

  • And also Alt+left-arrowkey or Alt+rigth-arrowkey - to switch from left to right through your tabs and vice versa!

Once you activated tab 1/2/3 you can then use Alt+w to close it.

enter image description here enter image description here

share|improve this answer
    
Thanks.. It seems to be new features added to gnome terminal though I'm not sure.. :) but it is really helpful.. –  Saurav Kumar Aug 19 at 13:03
    
You are welcome Saurav Kumar. How long this option is available now I can not say for sure. I noticed it in v. 11.10 - Oneiric Ocelot. –  v2r Aug 19 at 13:13

For me, what works is: Alt + shift + tab number.

share|improve this answer

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.