Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to switch to the previous pane by any shortcut in tmux?

For example, I have three panes in a window with tmux. Now my cursor is in the second pane. If I use:

C-b o

I can move to the third pane.

But I want to move to the first pane on the second pane. How to do?

It can list all the panes in one window:

C-b q

It will show: 0, 1, 2

Is there any key I can press to go to the special pane number? If there is, I can switch to the first pane in a short way, too.

like image 826
s-cho-m Avatar asked Aug 13 '15 05:08

s-cho-m


People also ask

How do you toggle panes in tmux?

Tmux uses the keybinding 'Prefix' followed by 'Ctrl+o' to cycle around the panes. When you use this key-binding for the first time, it moves the pane in one position clockwise.

How do I move a pane from one window to another in tmux?

Key binding By default, Ctrl + b , ! would break the active pane into a new window and switch to it. Where Ctrl + b is the default prefix for tmux.

What is Ctrl-B in tmux?

ctrl-b, <arrow key> switch to the pane in whichever direction you press. ctrl-b, d. detach from tmux, leaving everything running in the background.


Video Answer


1 Answers

Copied from @lyuboslav-kanev

prefix + ; worked perfectly for me.

prefix + l switch to last window
prefix + L switch to last session

like image 51
Rajesh Chaudhary Avatar answered Oct 18 '22 22:10

Rajesh Chaudhary