linux_wiki:tmux

This is an old revision of the document!


Tmux

General Information

Tmux is a terminal multiplexer. It is basically screen with more advanced features.

Checklist

  • Distros: All
  • Package: tmux

Install tmux:

yum install tmux
or
apt-get install tmux

1) Open a terminal

2) Start a tmux session (default name)

tmux

Start a named tmux session

tmux new -s MySession

Detach from open session

Ctrl+b d

List tmux sessions

tmux list-sessions

Attach to session

tmux attach -t MySession

Rename existing session

Ctrl+b :rename-session MyAwesomeName

Like screen, tmux has windows.

Create a new window

Ctrl+b c

Next Window

Ctrl+b n

Previous Window

Ctrl+b p

Rename Window

Ctrl+b ,
MyWindow

An advantage that tmux has over screen, is the ability to create panes.

Split window horizontally

Ctrl+b "

Split window vertically

Ctrl+b %

Kill current pane

Ctrl+b x
OR
exit

Navigate between panes

Ctrl+b up/down/left/right (arrow keys)

Maximize current pane (other pane moves to its own window)

Ctrl+b !

Enter copy mode

Ctrl+b [

While in copy mode

Move around: arrow keys Start selection: space Copy selection: enter

Paste selection

Ctrl+b ]

Help

Ctrl+b ?

List Commands

Ctrl+b :list-commands
  • linux_wiki/tmux.1425962887.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)