Command:
Start a new session:
tmux # For a session with default name
tmux new-session -s <new_session> # Specific a session name
To kill a tmux session:
tmux kill-session -t <session_name>
To see how many sessions are running and how many windows each session open:
tmux ls
Shortcut:
To create a new window: ^b + c
To switch between windows: ^b + <windows_number>
Horizontal split: ^b + “
Vertical split: ^b + %
To switch between each split: ^b + <arrow_key>
To enter copy mode: ^b + [
Leave a Reply