Tmux Cheatsheet

Tmux session management, window splitting, and terminal multiplexing

Terminal Multiplexer6 commandsintermediate

Overview

Tmux is a terminal multiplexer allowing multiple terminal sessions in one window.

Why It Matters

Tmux enables terminal multiplexing for managing multiple sessions and windows efficiently.

Essential Commands

tmux new -s dev

Create new named tmux session

tmux ls

List tmux sessions

tmux attach -t dev

Attach to named session

tmux split-window -h

Split current pane horizontally

tmux split-window -v

Split current pane vertically

tmux kill-session -t dev

Terminate named tmux session

Quick Start

Start with the create and manage sessions

Key Concepts

Create and manage sessions

Split panes horizontally and vertically

Use detach/attach for persistent sessions

Pro Tips

  • Combine multiple commands for powerful workflows
  • Use aliases to speed up your command entry
  • Create scripts to automate repetitive tasks

Common Pitfalls to Avoid

  • Forgetting to check the documentation for edge cases
  • Running commands without understanding their full impact
  • Not testing changes in a safe environment first

Related Resources

9 items