How to switch between tabs opened in gnome-terminal and also close any particular tab using shortcut key?

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


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 hereenter image description here