tmux is a software like screen. It allow you to have multiple terminal session. You can install tmux on ubuntu with command

apt install tmux

When you use tmux commands from within tmux, you need to switch to command mode like you do in vim, this is done by pressing key


Now you can enter key binds

Split window vertically %
Split window horizontal
new window c

tmux Commands

List all sessions tmux ls
Attach to a session tmux a
List Commands tmux list-commands
List Keybinds tmux list-keys

List All sessions

root@hon-vpn:~# tmux ls
0: 1 windows (created Mon Mar 27 04:31:44 2017) [204x61]
2: 1 windows (created Wed Jun  7 16:38:58 2017) [204x61]

To reconnect to a session, use “tmux a” command. In this example, we reconnect to session 2.

tmux a -t 2

Posted in Linux