TMUX - Terminal Multiplexer
Full Documentation
Why tmux
Allow starting process in
sshsessions that continue to run when the user logsoutOpen the same session on multiple computers
Hide irrelevant sessions to unclutter the terminal
and many other things...
Essential Usage
In the terminal
Start a new session:
tmux new -s <session_name>List sessions:
tmux lsAttach to an existing session:
tmux attach -t <session_name>
Within a session
The default bind key for tmux is C-b (Ctrl+b)
C-b + d: detach (session run as background)C-d: exit (kill session), typingexiton all terminals also workC-b + %: vertical splitC-b + ": horizontal splitC-b + :: enter commandC-b + [: enter scroll/copy modeEscorq: exit scroll/copy mode
(More) Advanced Usage
An user-specific config file for tmux should be located at ~/.tmux.conf
Enable scrolling by default: enter following command or add it to config file:
version 2.1 and up:
set -g mouse onolder versions:
set -g mode-mouse on
See also
Last updated
Was this helpful?