Skip to content

Instantly share code, notes, and snippets.

@jeromecovington
Last active December 6, 2019 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeromecovington/025eb114ef1ec833615d1903c967b621 to your computer and use it in GitHub Desktop.
Save jeromecovington/025eb114ef1ec833615d1903c967b621 to your computer and use it in GitHub Desktop.
tmux in brief
tmux new-session -s my_session
tmux ls
tmux attach-session -t my_session
Ctrl+b c
Create a new window (with shell)
Ctrl+b w
Choose window from a list
Ctrl+b 0
Switch to window 0 (by number)
Ctrl+b ,
Rename the current window
Ctrl+b %
Split current pane horizontally into two panes
Ctrl+b "
Split current pane vertically into two panes
Ctrl+b o
Go to the next pane
Ctrl+b ;
Toggle between the current and previous pane
Ctrl+b [
Enter copy mode (navigate with arrows)
Ctrl+space
Highlight text in copy mode
Ctrl+w
Copy to buffer
Ctrl+b ]
Paste into any tmux pane
Ctrl+b x
Close the current pane
Ctrl+b d
Detach session
tmux rename-session -t my_session other_session
tmux kill-session -t my_session
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment