HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

tmux — Terminal multiplexer. It allows multiple sessions with windows, panes, and more. See also: `zellij`,

Submitted by: @import:tldr-pages··
0
Viewed 0 times
terminalcommandmultipleclisessionsallowsmultiplexertmux

Problem

How to use the tmux command: Terminal multiplexer. It allows multiple sessions with windows, panes, and more. See also: zellij, screen. More information: <https://github.com/tmux/tmux>.

Solution

tmux — Terminal multiplexer. It allows multiple sessions with windows, panes, and more. See also: zellij, screen. More information: <https://github.com/tmux/tmux>.

Start a new session:
tmux


Start a new named [s]ession:
tmux {{[new|new-session]}} -s {{name}}


List existing sessions:
tmux {{[ls|list-sessions]}}


Attach to the most recently used session:
tmux {{[a|attach]}}


Detach from the current session (inside a tmux session):
<Ctrl b><d>


Create a new window (inside a tmux session):
<Ctrl b><c>


Switch between sessions and windows (inside a tmux session):
<Ctrl b><w>


Kill a session by [t]arget name:
tmux kill-session -t {{name}}

Code Snippets

Start a new session

tmux

Start a new named [s]ession

tmux {{[new|new-session]}} -s {{name}}

List existing sessions

tmux {{[ls|list-sessions]}}

Attach to the most recently used session

tmux {{[a|attach]}}

Detach from the current session (inside a tmux session)

<Ctrl b><d>

Context

tldr-pages: common/tmux

Revisions (0)

No revisions yet.