tmux
tmux is a terminal multiplexer that enables multiple terminals or windows to be accessed and controlled from a single terminal, similar to screen. It operates as a server-client system with consistent command syntax.
Description
tmux allows users to manage multiple terminal sessions efficiently within a single interface. It creates a server automatically when needed, holding sessions that can contain multiple windows. Clients can connect to these sessions, or the server can be controlled via tmux commands issued from the shell.
The tool provides a consistent and well-documented command interface usable interactively, as key bindings, or from the shell. It supports vim or Emacs key layouts for user preference. Communication occurs through a socket, defaulting to /tmp.
tmux is particularly useful for maintaining persistent terminal sessions, especially in remote or unstable connections, making it valuable for system administration and development workflows.
How It Works
tmux runs as a server-client system where a server is created automatically and holds sessions, each with multiple windows. Clients connect to sessions via a socket in /tmp by default. Commands share the same syntax whether interactive, key-bound, or shell-invoked, supporting vim or Emacs layouts.
Installation
sudo apt install tmuxFlags
Examples
tmux -htmuxtmux -f filetmux -L socket-nametmux -S socket-pathtmux -c shell-commandtmux -T features