Skip to content

Linux tmux Guide

Mattscreative edited this page Dec 5, 2025 · 2 revisions

Linux tmux Guide

Complete beginner-friendly guide to tmux on Linux, covering Arch Linux, CachyOS, and other distributions including terminal multiplexing, session management, and window panes.


Table of Contents

  1. tmux Installation
  2. tmux Basics
  3. Session Management
  4. Window and Pane Management
  5. Troubleshooting

tmux Installation

Install tmux

Arch/CachyOS:

# Install tmux
sudo pacman -S tmux

Debian/Ubuntu:

sudo apt install tmux

Fedora:

sudo dnf install tmux

tmux Basics

Start tmux

Basic usage:

# Start tmux
tmux

# Opens new tmux session

Detach Session

Detach:

# Detach session
# Press: Ctrl+B then D

# Session continues running

Session Management

List Sessions

Show sessions:

# List sessions
tmux ls

# Shows all tmux sessions

Reattach Session

Reconnect:

# Reattach session
tmux attach

# Or
tmux a

# Reconnects to session

Window and Pane Management

Create Window

New window:

# In tmux:
# Press: Ctrl+B then C

# Creates new window

Split Panes

Split window:

# In tmux:
# Ctrl+B then % - Split vertically
# Ctrl+B then " - Split horizontally

Troubleshooting

tmux Not Found

Check installation:

# Check tmux
which tmux

# Install if missing
sudo pacman -S tmux

Summary

This guide covered tmux usage, terminal multiplexing, and session management for Arch Linux, CachyOS, and other distributions.


Next Steps


This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.

Clone this wiki locally