Skip to content
- Run using
tmux
-
- Kill one of the terminal
tmux kill-session -t 0
- Panes
- Horizontal -
ctrl+b and then ”
- Vertical -
ctrl+b and then %
- Switch between panes ->
ctrl+b then -> or <-
- Windows
- Create a New Window Prefix +
c or tmux new-window
- Switch between windows ->
ctrl+b then n or p
- n for next & p for previous
- Close window
Prefix then &
- Rename ->
Prefix then , i.e. comma OR tmux rename-window new-name
- Sessions
- To end all the sessions use
exit
- List all running
tmux ls or tmux list-sessions
- Close tmux and Detach
ctrl+b then d
ctrl + b helps us send command to tmux
- Attach to most recent session ->
tmux attach or tmux a
- Attach to a specific session ->
tmux attach-session -t <session-name>
- Rename ->
prefix $ OR tmux rename-session new-name
- Switch b/w session ->
Prefix then s