Tmux

tmux (terminal multiplexer) 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
Install :

The configuration files are located in

Start session
Once started tmux will create a socket for the session in

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):

Key Binds
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.
 * + to + = Arrange panes in one of the five preset layouts: even-horizontal, even-vertical, main-horizontal, main-vertical, or tiled.
 * = 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.


 * = Enter copy mode to copy text or view the history.
 * = Paste the most recently copied buffer of text.
 * = List all paste buffers.
 * = Delete the most recently copied buffer of text.

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: