Starting Your First Session
tmux
start session and set name to it:
tmux new -s name
rename your existing session:
tmux rename-session -t 0 newname
Splitting Panes:
split panes into a left and a right pane
C-b %
split a pane into top and bottom
C-b "
Switching to a different pane
C-b <arrow key>
Closing a pane
exit or Ctrl-d
Creating Windows:
Creating new windows
C-b c
switch to the previous window
C-b p
switch to the next window
C-b n
switch to the certain window
C-b number
Session Handling:
To detach your current session
C-b d
choice which of your sessions you want to detach
C-b D
List the currently running sessions
tmux ls
To connect to certain session by index
tmux attach -t 0
To connect to certain session by name
tmux attach -t sessionname
other commands:
list of all available commands
C-b ?
make a pane go full screen. Hit C-b z again to shrink it back to its previous size
C-b z
Resize pane in direction of <arrow key>
C-b C-<arrow key>
Rename the current window
C-b ,