Tmux

tmux is a program that enables a number of terminals (or windows), each running a separate program, to be created, accessed, and controlled from a single screen. Users familiar with GNU Screen may find that tmux is a good alternative.

Installation
Terminal multiplexer is available on Gentoo Linux and supports the following useflags:

You can install tmux using the following command:

The configuration files are located in

tmux Configuration File

Usage
General usage of tmux

Start Session
Once started tmux will create a socket for the session in /temp/S-/ tmux can be started with the following command:

tmux can be controlled from an attached client by using a key combination of a prefix key, + by default, followed by a command key. Give the session a reasonable name on startup:

Start a command in a screen session without attaching to it (like a daemon):

Commands
After pressing + the following key combinations can be used:

General

 * = List all key bindings.
 * = Detach the current client.
 * = Enter the tmux command prompt.

Creating/Managing windows

 * = Create a new window
 * = Change to the next window.
 * = Change to the previous window.
 * = Move to the previously selected window.
 * = Select windows 0 to 9.
 * = Prompt for a window index to select. Then enter a number or title to switch to that window.
 * = Rename the current window.
 * = Choose the current window interactively.
 * , then type list-windows = Display the list of windows.

Creating/Managing panes

 * = Split the current pane into two, top and bottom.
 * = Split the current pane into two, left and right.
 * = Select the next pane in the current window.
 * = Move to the previously active pane.
 * {{Key|{}} = Swap the current pane with the previous pane.
 * {{Key| } }} = Swap the current pane with the next pane.
 * + = Rotate the panes in the current window forwards.
 * = Kill the current pane.
 * = Break the current pane out of the window.

Copy, Paste and Scroll operations
The keys available depend on whether emacs (default) or vi mode is selected. The mode-keys option can be set int .tmux.conf for vi mode.

Resume Session
After the session is detached, all the active terminals remain active and so do commands that didn't finish yet. To list existing sessions:

To resume this session:

Solutions to Common Problems
stub

Links
tmux project site