Docsity

Tmux Cheat Sheet: A Comprehensive Guide to Managing Sessions, Windows, and Panes, Study notes of Operating Systems

Toggle sidebar
bg1
tmux cheat sheet
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 or Ctrl + B
then Ctrl + Up
arrow / Down
arrow
Resize current pane height
Ctrl + B then Left
arrow / Right
arrow or Ctrl + B
Resize current pane width
then Ctrl + Left
arrow / Right
arrow
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 modification: 11/11/2019 8:10:46 PM
More information: defkey.com/tmux-shortcuts
Page 1 of 2
pf2

Partial preview of the text

Download Tmux Cheat Sheet: A Comprehensive Guide to Managing Sessions, Windows, and Panes and more Study notes Operating Systems in PDF only on Docsity!

tmux cheat sheet

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 or Ctrl + B then Ctrl + Up arrow / Down arrow Resize current pane height Ctrl + B then Left arrow / Right arrow or Ctrl + B Resize current pane width then Ctrl + Left arrow / Right arrow 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_

Misc

Ctrl + B then : Enter command mode

Help

Ctrl + B then? Show shortcuts Last modification: 11/11/2019 8:10:46 PM More information: defkey.com/tmux-shortcuts Page 1 of 2

Customize this PDF... Page 2 of 2