Master the terminal multiplexer. Navigate sessions, windows, and panes like a pro.
Global Prefix
Press these first for most commands
Perfect for running long scripts on remote servers without fear of SSH disconnections.
# 1. Start a named session
$ tmux new -s deploy
# 2. Start your 5-hour task
$ ./massive_db_migration.sh
# 3. Detach and close SSH
prefix + d
# 4. Later, re-attach
$ tmux a -t deploy
The classic web developer setup: Editor on the left, server and git on the right.
# 1. Open editor taking full screen
$ nvim index.js
# 2. Split vertically (Right panel)
prefix + %
# 3. Split right panel horizontally
prefix + "
# 4. Run server top right, git bottom
prefix + Arrows to move
Juggling multiple projects? Keep each project in its own self-contained session.
# 1. Start Client project
$ tmux new -s ClientApp
# 2. Detach prefix + d
# 3. Start API project
$ tmux new -s API
# 4. Pop open the session switcher UI
# visually jump between projects
prefix + s