Skip to content

Instantly share code, notes, and snippets.

@wael34218
Last active December 16, 2021 16:22
Show Gist options
  • Save wael34218/73c24361a0df134f52e7fc3fca6fdf3c to your computer and use it in GitHub Desktop.
Save wael34218/73c24361a0df134f52e7fc3fca6fdf3c to your computer and use it in GitHub Desktop.

TMux Command

Command Description
tmux new -s NAME Create new tmux session
tmux ls List all sessions started on the machine/user
tmux a -t NAME Reattach a tmux session
tmux kill-session -t NAME Terminate session

Commands within a session

Command Description
[ctrl + b] [d] Detach from the current session. Executed from inside the session
[ctrl + b] [%] Create a new pane (Split Vertically)
[ctrl + b] ["] Create a new pane (Split Horizantally)
[ctrl + b] [x] Kill pane
[ctrl + b] [ARROWS] Navigate between panes
[ctrl + b] [o] Swap panes
[ctrl + b] [SPACE] Toggle between layouts
[ctrl + b] [c] Create window
[ctrl + b] [w] List windows
[ctrl + b] [n] Next window
[ctrl + b] [0-9] Select window
[ctrl + b] [p] Previous window
[ctrl + b] [&] Kill window
[ctrl + b] [ [ ] Scroll mode, to quit press q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment