Key shortcuts
- tmux
- Create a new session (the first time)
- tmux a
- Attach to an existing session
- Ctrl+b d
- Detach
- Ctrl+b PgUp/PgDown
- Scroll (quit with q) also can use mouse after first page up or down (see tips below to activate normal mouse scrolling)
- Ctrl+b [
- Copy mode (quit with q)
- Ctrl+b "
- Split horizontally
- Ctrl+b %
- Split vertically
- Ctrl+b arrow key
- Switch pane
- Hold Ctrl+b + arrow keys
- Resize pane
- Ctrl+b + z
- Toggle zoom in pane
Tips
- Copy/pasting
- sudo apt-get install xclip
- Install xclip so buffer copied inside tmux are also available to X
- Shift + mouse selection
- Select text to copy
- Ctrl + Shift + C
- Copy
- Ctrl + Shift + V
- Paste
- Use the mouse for scrolling
- set -g mouse on
- put this command in ~/.tmux.conf