Skip to content

Tmux

Install on Amazon Linux

sh
sudo yum install tmux

Install on Ubuntu

sh
sudo apt-get install tmux

Install on MacOS

sh
brew install tmux

To list all sessions

sh
tmux ls

To start a new tmux

sh
tmux new -s <name>

To detach from session

Note: First hold ctrl, then press b. Let go of ctrl, then press d

Ctrl + b d

To detach and kill session

Ctrl + d

To move to previous/next session

Ctrl + b ( or Ctrl + b )

To attach to a sessions

sh
tmux a -t <name>