Copy and Paste in tmux

From the tmux cheat sheet · Copy Mode and Buffers · verified Aug 2026

Copy and Paste

Copy a selection into a tmux buffer and paste it.

bash
# In vi copy mode: Space, move, Enter
# Ctrl-b ]  paste
📌 tmux keeps copied text in paste buffers
⚡ Ctrl-b ] pastes the newest buffer
🔍 System clipboard integration is terminal-dependent
⚠️ Buffers can contain sensitive terminal output
bufferscopypaste

Continue with tmux

Save the full cheat sheet or work through every related task.

More tmux tasks

Back to the full tmux cheat sheet