ποΈTMUX
TMUX Commands
Description
Command
Create a new session
tmux new -s <SESSION_NAME>
See any existing sessions
tmux list-sessions
tmux ls
Attach to existing session
tmux attach -t <SESSION_NAME>
Make all windows the same size
Ctrl+b
THEN Alt+2
Add new tmux window vertically
Ctrl+b
THEN Shift + @
Add new tmux window horizontally
Ctrl+b
THEN %
Detach from current session
Ctrl+b
THEN d
Kill current session
Ctrl+c
Highlight text to copy
Option + click and drag
Install and configure TMUX
sudo apt-get install -y tmux
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
tmux new -s <SESSION_NAME>
tmux show -g | sed 's/^/set-option -g /' > ~/.tmux.conf
vim ~/.tmux.conf
Change
mouse
toon
globally
set-option -g mouse on
Change
mouse
toon
for current session
tmux set -g mouse on
Last updated