Skip to content

Instantly share code, notes, and snippets.

@frankmalin
Created May 31, 2024 13:28
Show Gist options
  • Save frankmalin/c7e4fe9bddee9bba80e24eda7cc0ead3 to your computer and use it in GitHub Desktop.
Save frankmalin/c7e4fe9bddee9bba80e24eda7cc0ead3 to your computer and use it in GitHub Desktop.
TMux Cheat Sheet

tmux cheat sheet

^b is +b by default.

list

tmux ls

create

tmux new -s <session name>

attach

tmux at -s <session name>

detach

^b d

attach read-only

tmux at -r -s <session name>

Enter : mode

^b :

split window/pane

Horizontal line :split-window -v OR ^b "

Vertical line :split-window -v OR ^b %

Navigate pane

^b <arrow key>

Close pane

^b x

Enter copy mode

^b [

quit q

Copy scroll back to file

Enter : mode ^b : capture file (-) captures all :capture-pane -S -<linecount> Enter : mode ^b : wite to file :save-buffer filename.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment