Tmux Commands & Key Bindings: A Quick Guide
Tmux is an incredibly powerful terminal multiplexer, but if you don’t use it often, remembering all the key bindings and commands can be challenging. This guide provides a quick but comprehensive refresher on some of the most useful, yet often overlooked, commands to improve your efficiency when working with Tmux. Basic Must-Know Commands Before diving into lesser-known tricks, here are some essential tmux commands that everyone should know: Start a new session: tmux Detach from session: Ctrl-b d List all sessions: tmux ls Attach to a session: tmux attach -t <session_name> Kill a session: tmux kill-session -t <session_name> Less-Known but Incredibly Useful Tmux Commands 1. Quickly Rename a Session Instead of struggling to remember which session is which: tmux rename-session -t old_name new_name Or using a shortcut: Ctrl-b $ → Prompts to rename the session. 2. Copy & Paste in Tmux Without a Mouse Enter Copy Mode: Ctrl-b [ Start selection: Spa...