tmux
From outside tmux
Start a new session:
$ tmux, or$ tmux newList sessions:
$ tmux lsAttach to a session:
$ tmux a -t session_nameKill a session:
$ tmux kill-session -t session_name
Useful commands
List tmux commands:
Ctrl + b ?
Working with sessions
Create a new session:
Ctrl + b : newRename session:
Ctrl + b $Detach from the current session:
Ctrl + b dMove to another session:
Ctrl + b (, orCtrl + b )
Working with panes
Split pane vertically:
Ctrl + b %Split pane horizontally:
Ctrl + b "Switch to the next pane:
Ctrl + b oSwitch to another pane:
Ctrl + b ←, orCtrl + b →, orCtrl + b ↑, or ↓Close pane: Ctrl + b x
Move the pane:
Ctrl + b {, orCtrl + b }
Copy mode
Enter copy mode:
Ctrl + b [, orCtrl + PgUpQuit copy mode:
q
Sources
Last updated
Was this helpful?