Skip to content

Instantly share code, notes, and snippets.

@surajnarwade
Last active November 14, 2023 15:24
Show Gist options
  • Save surajnarwade/2e398402960f6b0c1ed2daed681b934d to your computer and use it in GitHub Desktop.
Save surajnarwade/2e398402960f6b0c1ed2daed681b934d to your computer and use it in GitHub Desktop.

type tmux in terminal

Windows:

  • Create new window: Ctrl+b c
  • Move to next window: Ctrl+b n
  • Move to previos window: Ctrl+b p
  • List all wondows: Ctrl+b w

Panes/Split:

  • To split horizontally: Ctrl+b " (shift ")

  • To split vertically: Ctrl+b % (shift 5)

  • To move to next pane: Ctrl+b o

  • Run one command in all panes: Ctrl+b and type :setw synchronize-panes

  • Scrolling, Ctrl+b Page Up and Ctrl+b Page Down

For different prefix, internet recommends different conf file,

tmux -f /path/to/tmux.conf

file consists of,

# use of ` instead of Ctrl+b
set-option -g prefix `
bind-key ` send-prefix
unbind-key C-b
  • mouse on: set -g mouse on
  • copy paste is shift+middle button of mouse
@satyamz
Copy link

satyamz commented Oct 24, 2018

To split horizontally: Ctrl+b " (shift ")

To avoid confusion above line can be written as
To split horizontally: Ctrl+b " or Ctrl+b (shift ')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment