John Holbrook from SOLUG (http://solug.org) recommended tmux after I was raving about screen. I thought screen was the greatest thing in the world and had no reason to search an alternative. Now I don't know how I ever lived without tmux.
What Is tmux?
Tmux is a software application that can be used to multiplex several virtual consoles, allowing a user to access multiple separate terminal sessions inside a single terminal window or remote terminal session.Wikipedia
Pronuciation: I have no definitive answer, half say “T-mucks” other half “tmox”.
In Ubuntu tmux is not installed by default but you can:
# Install tmux with apt-get: sudo apt-get install -y tmux # Alternativley install tmux with snap sudo snap install tmux # Start tmux tmux
Start a new named session
tmux new -s sessionName
Attach to an existing session
If you just want to attach to the first session, no name or -t option is needed.
tmux a -t sessionName
Ctrl+b is the default shortcut for tmux
Detach the session
Create new window
Close current window
Note the lack of Ctrl+b here.
Ctrl+d or Ctrl+b &
Create Horizontal pane
Create vertical pane
Switch between panes
You can also use the arrow keys instead of o
Close current pane
Show pane number
Distribute panes equally vertically
Distribute panes equally horizontally
Send Keys to all panes
Ctrl-B : setw synchronize-panes on