Tmux - Terminal multiplexer
tmux is a terminal multiplexer for Unix-like operating systems. It allows you to run multiple terminal sessions in a single window, split the terminal into panes, and detach and reattach sessions, providing a flexible and efficient way to manage terminal tasks and sessions
Session | Terminal | Command key | |
Create | tmux new -s session_name | ||
Detach | ctrl + b then press d | ||
Attach | Tmux a -t session_name | # -t Target | |
List | tmux ls | ||
Rename | Tmux rename-session -t old_s_name new_s_name | ctrl + b then press $ | |
Kill | Tmux kill-session -t session_name or index_number | ||
Switch b/w session | ctrl + b then press s | ||
Window | |||
Create | ctrl + b then press c | ||
Rename | ctrl + b then press , | ||
Switch b/w window | ctrl + b then index_number | ||
Delete | ctrl + b then press & | ||
Panes | split right/left | ctrl + b then press % | |
split top/bottom | ctrl + b then press " | ||
Switch b/w pane | ctrl + b then press ⬆️/ ➡️/ ⬅️/⬇️ | ||
Kill pane | ctrl + b then press x / or type exit |