Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.24 KB

command-reference.md

File metadata and controls

40 lines (30 loc) · 1.24 KB

The history command

  • history | grep <command> - the commands you ran that match <command>
  • !123 - re-run command 123 in the history

A Ctrl+B Cheat Sheet for Tmux

Taken from Howtogeek

Fuller cheat sheet here

Session Commands

  • S: List sessions.
  • $: Rename current session.
  • D: Detach current session.
  • Ctrl+B, and then ?: Display Help page in tmux.

Window Commands

  • C: Create a new window.
  • ,: Rename the current window.
  • W: List the windows.
  • N: Move to the next window.
  • P: Move to the previous window.
  • 0 to 9: Move to the window number specified.

Pane Commands

  • %: Create a horizontal split.
  • “: Create a vertical split.
  • H or Left Arrow: Move to the pane on the left.
  • I or Right Arrow: Move to the pane on the right.
  • J or Down Arrow: Move to the pane below.
  • K or Up Arrow: Move to the pane above.
  • Q: Briefly show pane numbers.
  • O: Move through panes in order. Each press takes you to the next, until you loop through all of them.
  • }: Swap the position of the current pane with the next.
  • {: Swap the position of the current pane with the previous.
  • X: Close the current pane.