Advertisement
Guest User

Untitled

a guest
May 5th, 2025
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | Source Code | 0 0
  1.  
  2. CTRL + B ? list-keys
  3. CTRL + B :list-keys
  4. CTRL + B :set-option -g prefix2 C-a
  5. CTRL + B > display-menu
  6. CTRL + B < display-menu
  7. ### scroll screen buffer
  8. CTRL + B PgUp enter the screen buffer mode
  9. CTRL + C exit the screen buffer
  10. CTRL + B :set -g mouse on
  11. CTRL + B :set -g mouse off
  12. ### expand history buffer size; default 2000
  13. CTRL + B :set -g history-limit 30000
  14.  
  15. tmux sessions
  16. ### new sessions
  17. tmux
  18. tmux new
  19. tmux new-session
  20. CTRL + B :new
  21. tmux new -s sessionname
  22. ### list sessions
  23. tmux ls
  24. CTRL + B s
  25. ### attach sessions
  26. tmux a
  27. tmux att
  28. tmux attach
  29. tmux attach-session
  30. tmux a -t sessionname/sessionnumber
  31. ### remove sessions
  32. tmux kill-ses
  33. tmux kill-session -t sessionname
  34. ### key bindings
  35. CTRL + B D detach session
  36. CTRL + B ) next session
  37. CTRL + B ( previous session
  38. CTRL + B $ rename session
  39.  
  40. tmux windows
  41. ### windows are like tabs in a browser. Windows exist in sessions and occupy the space of a session screen.
  42. ### key bindings
  43. CTRL + B C create window
  44. CTRL + B 0 … 9 select window by number
  45. CTRL + B W list windows
  46. CTRL + B & kill window
  47. CTRL + B N move to next window
  48. CTRL + B P move to previous window
  49. CTRL + B L move to window last used
  50. CTRL + B ‘ select window by name
  51. CTRL + B . change window number
  52. CTRL + B , rename window
  53. CTRL + B F search windows
  54.  
  55. tmux panes
  56. ### panes are sections of windows that have been split into different screens — just like the panes of a real window!
  57. ### key bindings
  58. CTRL + B % vertical split
  59. CTRL + B “ horizontal split
  60. CTRL + B → move to pane to the right
  61. CTRL + B ← move to pane to the left
  62. CTRL + B ↑ move up to pane
  63. CTRL + B ↓ move down to pane
  64. CTRL + B O go to next pane
  65. CTRL + B ; go to last active pane
  66. CTRL + B } move pane right
  67. CTRL + B { move pane left
  68. CTRL + B ! convent pane to window
  69. CTRL + B X kill pane
  70.  
  71. tmux copy mode
  72. ### key bindings
  73. CTRL + B [ - enter copy mode
  74. CTRL + B ] - paste from buffer
  75. CTRL + B :choose-buffer
  76. CTRL+ space - start selection
  77. CTRL+ W - end selection
  78. esc - clear selection
  79. Arrow keys - move
  80. g - goto line
  81. Alt + down - Half page down
  82. C-r - Search backward
  83. C-s - Search forward
  84. n - Search again
  85. tmux copy mode - vi
  86. ### copy mode commands
  87. space - start selection
  88. enter - copy selection
  89. g - go to top
  90. G - go to bottom
  91. h - move cursor left
  92. j - move cursor down
  93. k - move cursor up
  94. l - move cursor right
  95. / - search
  96. ### list paste buffers
  97. q quit
  98. ^ mark to begining of line
  99. $ mark to end of line
  100.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement