# tmux

> Terminal multiplexer that creates, manages, and controls multiple terminal sessions from a single screen

Stars: 50.1k · Language: C · License: ISC · Categories: System

- Repository: https://github.com/tmux/tmux
- Page: https://www.trmn.sh/tools/tmux

## Install

- Source build: `./configure && make && sudo make install`
- From git: `git clone https://github.com/tmux/tmux.git && cd tmux && sh autogen.sh && ./configure && make`

## Overview

tmux is a terminal multiplexer that allows users to create, access, and control multiple terminal sessions from a single screen. It enables running multiple command-line programs simultaneously within separate panes and windows, all managed through keyboard shortcuts and commands. A key capability is session persistence - tmux sessions can be detached from the current terminal and continue running in the background, then reattached later from the same or different terminal.

The tool runs on OpenBSD, FreeBSD, NetBSD, Linux, macOS, and Solaris. It depends on libevent 2.x and ncurses libraries for its functionality. tmux supports advanced features like window splitting, session sharing between multiple users, and scriptable configuration through configuration files.

Developers, system administrators, and power users commonly use tmux for managing long-running processes, maintaining persistent work sessions across SSH connections, and organizing complex terminal-based workflows. The tool includes debugging capabilities through verbose logging modes and provides bash completion for command-line usage.

### Installation

```bash
# via Source build
./configure && make && sudo make install
```

```bash
# via From git
git clone https://github.com/tmux/tmux.git && cd tmux && sh autogen.sh && ./configure && make
```

## Alternatives

- [mpv](https://www.trmn.sh/tools/mpv.md): Free command-line media player supporting many audio/video formats, codecs and subtitle types, with GPU shader-based rendering and optional hardware decoding. (C, 37.7k stars)
- [hashcat](https://www.trmn.sh/tools/hashcat.md): Password recovery tool that cracks hashes on GPUs and CPUs using CUDA, HIP, Metal or OpenCL, with 590+ hash modes and 10 attack modes. (C, 27.2k stars)
- [fastfetch](https://www.trmn.sh/tools/fastfetch.md): System information tool that displays hardware and OS details with customizable ASCII art logos and module configuration (C, 25.2k stars)
- [GoAccess](https://www.trmn.sh/tools/goaccess.md): Real-time web server log analyzer written in C that shows HTTP statistics in a terminal or a live HTML dashboard, with JSON and CSV export. (C, 21.1k stars)
- [nvtop](https://www.trmn.sh/tools/nvtop.md): htop-like GPU and accelerator task monitor supporting NVIDIA, AMD, Intel, Apple, and other vendors (C, 11.1k stars)

## Guides

- [Keep work running with tmux sessions](https://www.trmn.sh/guides/tmux-persistent-sessions): Create, detach and reattach named tmux sessions, split windows and panes, write a minimal ~/.tmux.conf, and keep jobs alive when SSH drops.
- [Best Terminal Multiplexers](https://www.trmn.sh/best/terminal-multiplexers): Compare tmux, Zellij, WezTerm and cy: sessions, panes, tabs, detach and reattach, plus configuration and platform differences.
- [tmux vs zellij](https://www.trmn.sh/compare/tmux-vs-zellij): tmux vs zellij: C-based multiplexer with detach/reattach versus a Rust multiplexer with floating panes, WASM plugins and a web client.

---

Canonical: https://www.trmn.sh/tools/tmux
