======================= tmux keyboard shortcuts ======================= First published at 10/24/2019 on https://defkey.com/tmux-shortcuts tmux is a 'terminal multiplexer' for Unix based operating systems that allows multiple terminal sessions to be accessed from a single window. With tmux, you can also leave the terminal session without interrupting the running process. tmux has 49 shortcuts and we have listed all of them below. Installing Tmux --------------- To install Tmux, type sudo apt-get install tmux in Ubuntu or Debian command line. Sessions -------- Ctrl + B then S Show all sessions Ctrl + B then $ Rename session Ctrl + B then ( Move to previous session Ctrl + B then ) Move to next session Ctrl + B then $ Rename session Ctrl + B then D Detach from session Windows ------- Ctrl + B then C Create window Ctrl + B then N Next window Ctrl + B then [0 - 9] Switch / select window by number Ctrl + B then , Rename current window Ctrl + B then P Previous window Panes ----- Ctrl + B then ; Toggle last active pane Ctrl + B then % Split pane vertically Ctrl + B then " Split pane horizontally Ctrl + B then { Move the current pane left Ctrl + B then } Move the current pane right Ctrl + B then Arrow keys Switch pane to the direction Ctrl + B then Q Show pane numbers Ctrl + B then Q then [0 - 9] Switch / select pane by number Ctrl + B then Z Toggle pane zoom Ctrl + B then ! Convert pane into a window Ctrl + B then updwon Resize current pane height Ctrl + B then Ctrl + Up arrow / Down arrow Resize current pane height Ctrl + B then Left arrow / Right arrow Resize current pane width Ctrl + B then Ctrl + Left arrow / Right arrow Resize current pane width Ctrl + B then Space Toggle between pane layouts Ctrl + B then O Switch to next pane Ctrl + B then X Close current pane Copy mode --------- Ctrl + B then [ Enter copy mode Ctrl + B then Page Up Enter copy mode and scroll one page up Q Quit mode G Go to top line Up arrow / Down arrow Scroll up / down H Move cursor left J Move currsor down K Move cursor up L Move cursor right W Move cursor forward one word at a time B Move cursor backward one word at a time / Search forward ? Search backward N Next keyword occurrence Shift + N Previous keyword occurrence Space Start selection Esc Clear selection Enter Copy selection Ctrl + B then ] Paste contents of buffer_0 Misc ---- Ctrl + B then : Enter command mode Help ---- Ctrl + B then ? Show shortcuts Last modified on (UTC): Monday, November 11, 2019 Defkey © All rights reserved.