Brandon

Tmux

tmux is a terminal multiplexer for UNIX-like systems, similar to GNU Screen or Byobu, which enables splitting a single console into multiple panes or creating independent sessions within the same terminal. In practical terms, tmux allows multiple virtual terminals to operate within one window.

Detailed documentation is available in the OpenBSD manual.

Much of the information here is drawn from the Learn Linux TV playlist.

Sessions

A session in tmux comprises a collection of windows and panes. Each session represents an isolated workspace for a specific set of tasks or projects. Multiple sessions can run concurrently, and sessions may be detached and reattached as needed.

Windows

Within a session, multiple windows may be created. Each window provides an independent view containing its own set of panes. Windows facilitate organization of distinct tasks or contexts within the same session.

Panes

Panes divide a single window into multiple regions, each capable of hosting a separate terminal or application. Panes enable simultaneous monitoring of a process in one pane while interacting with another, without switching windows.

Installation

Installation steps vary by distribution; refer to the official tmux installation guide) for system-specific instructions. In general, executing: <package-manager> install tmux.

Commands

Shortcuts

All shortcuts assume the default prefix CTRL + b (modifiable in configuration).

A comprehensive tmux cheat sheet is also available.

Configuration

A user-specific configuration file can be created at ~/.tmux.conf. Temporary, non-persistent options may be tested directly within the tmux command prompt before being added to the configuration file.

Customization examples from Learn Linux TV can be found in this configuration guide.