TMUX(1) General Commands Manual TMUX(1)

tmux
terminal multiplexer

tmux [-vV] [-S socket-path] [-s session-namecommand [arguments]

tmux is a terminal multiplexer; it enables a number of terminals (or windows) to be accessed and controlled from a single terminal.

tmux runs as a server-client system. A server is created automatically when necessary and holds a number of sessions, each of which may have a number of windows connected to it. Any number of clients may connect to a session, or the server may be controlled by issuing commands with the tmux binary. Communication takes place through a socket, by default placed in /tmp.

The options are as follows:

socket-path
This specifies an alternative path to the server socket. The default is /tmp/tmux-UID, where UID is the uid of the user who invoked tmux.
session-name
Apply command to the session named session-name. This option does not apply to all commands. If it is omitted and tmux is invoked from a running tmux client, the session the containing client is connected to will be used; otherwise, if only one session exists, it is chosen, or if multiple sessions exist, an error is generated.
Request verbose logging. This option may be specified multiple times for increasing verbosity. Log messages will be saved into tmux-client-PID.log and tmux-server-PID.log files in the current directory, where PID is the pid of the server or client process.
command [arguments]
This specifies one of a set of commands used to control tmux, and described in the following section.

tmux supports the following commands:
[-d]
(Alias: attach)
key command [arguments]
(Alias: bind)
[-a]
(Alias: detach)
(Alias: has)
[-i index]
(Alias: killw)
(Alias: last)
[-i index] name index
(Alias: linkw)
(Alias: lsc)
(Alias: lsk)
(Alias: ls)
(Alias: lsw)
[-d] [-s session-name] [-n window-name] [command]
(Alias: new)
[-d] [-i index] [-n name] [command]
(Alias: neww)
(Alias: next)
(Alias: prev)
[-a]
(Alias: refresh)
(Alias: rename)
[-i index] new-name
(Alias: renamew)
index
(Alias: selectw)
 
) option value
(Alias: set)
[-i index] name index
(Alias: swapw)
key
(Alias: unbind)
[-i index]
(Alias: unlinkw)

pty(4)

Nicholas Marriott ⟨nicm@users.sourceforge.net⟩
November 9, 2007 BSD