Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CTRL + B ? list-keys
- CTRL + B :list-keys
- CTRL + B :set-option -g prefix2 C-a
- CTRL + B > display-menu
- CTRL + B < display-menu
- ### scroll screen buffer
- CTRL + B PgUp enter the screen buffer mode
- CTRL + C exit the screen buffer
- CTRL + B :set -g mouse on
- CTRL + B :set -g mouse off
- ### expand history buffer size; default 2000
- CTRL + B :set -g history-limit 30000
- tmux sessions
- ### new sessions
- tmux
- tmux new
- tmux new-session
- CTRL + B :new
- tmux new -s sessionname
- ### list sessions
- tmux ls
- CTRL + B s
- ### attach sessions
- tmux a
- tmux att
- tmux attach
- tmux attach-session
- tmux a -t sessionname/sessionnumber
- ### remove sessions
- tmux kill-ses
- tmux kill-session -t sessionname
- ### key bindings
- CTRL + B D detach session
- CTRL + B ) next session
- CTRL + B ( previous session
- CTRL + B $ rename session
- tmux windows
- ### windows are like tabs in a browser. Windows exist in sessions and occupy the space of a session screen.
- ### key bindings
- CTRL + B C create window
- CTRL + B 0 … 9 select window by number
- CTRL + B W list windows
- CTRL + B & kill window
- CTRL + B N move to next window
- CTRL + B P move to previous window
- CTRL + B L move to window last used
- CTRL + B ‘ select window by name
- CTRL + B . change window number
- CTRL + B , rename window
- CTRL + B F search windows
- tmux panes
- ### panes are sections of windows that have been split into different screens — just like the panes of a real window!
- ### key bindings
- CTRL + B % vertical split
- CTRL + B “ horizontal split
- CTRL + B → move to pane to the right
- CTRL + B ← move to pane to the left
- CTRL + B ↑ move up to pane
- CTRL + B ↓ move down to pane
- CTRL + B O go to next pane
- CTRL + B ; go to last active pane
- CTRL + B } move pane right
- CTRL + B { move pane left
- CTRL + B ! convent pane to window
- CTRL + B X kill pane
- tmux copy mode
- ### key bindings
- CTRL + B [ - enter copy mode
- CTRL + B ] - paste from buffer
- CTRL + B :choose-buffer
- CTRL+ space - start selection
- CTRL+ W - end selection
- esc - clear selection
- Arrow keys - move
- g - goto line
- Alt + down - Half page down
- C-r - Search backward
- C-s - Search forward
- n - Search again
- tmux copy mode - vi
- ### copy mode commands
- space - start selection
- enter - copy selection
- g - go to top
- G - go to bottom
- h - move cursor left
- j - move cursor down
- k - move cursor up
- l - move cursor right
- / - search
- ### list paste buffers
- q quit
- ^ mark to begining of line
- $ mark to end of line
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement