Andrew Pennebaker
https://github.com/mcandre/cheatsheets/blob/master/tmux.md
tmux is a program for managing multiple terminal sessions. Sessions can be created, destroyed, backgrounded, foregrounded, split, and logged.
$ apt-get install tmux
$ chocolatey install cygwin
$ brew install tmux
$HOME/tmux.conf
See tmux-completion
C-
=Control
M-
=Alt
("Meta" key)S-
=Shift
key-key key-key key-key...
= Hotkeys are pressed in order, not simultaneously.<...>
= user-defined value[...]
= optional
C-b : <command>
$ tmux [options]
tmux$
Options includes:
new -s <name>
Name the new session-d
Automatically detach from the new window-c <command>
Execute a shell command
$ tmux ls
Detaching a session allows it to run in the background, e.g. even after disconnecting from an SSH session.
C-b d
tmux can resume a running session, e.g. once an SSH session has been reestablished.
$ tmux attach -t <name>