--- title: "TMUX Cheat Sheet" date: 2022-04-08T13:20:00+02:00 draft: false type: "post" --- Default prefix “key” is `Ctrl + b`. Sessions -------- Creating a new named session: tmux new-session -s Listing all sessions: tmux list-session Attach to a running session: tmux attach -t To detach from a session, press: ` + d` Renaming a session: tmux rename-session -t Kill a session: tmux kill-session -t Windows ------- To create a new window, within a session press: ` + c`. To list all windows, press: ` + w`. The list also allows us to select a window using `UP, DOWN` and `ENTER`. To rename a window, press: ` + ,`. To terminate a window, press: ` + &`. Copy-Mode --------- To enter copy mode, press: ` + [`. Begin selection with: ` + Space`. Hit `ENTER` to copy the selected text to tmux’s clipboard. Paste with ` + ]`.