Linux tmux Guide - ryzendew/Linux-Tips-and-Tricks GitHub Wiki
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
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
- screen Guide - Alternative multiplexer
- tmux and screen Guide - Combined guide
- Bash Scripting Guide - Scripting basics
- tmux Documentation:
man tmux
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.