For Ubuntu
sudo apt-get install tmuxIn Mac
brew install tmuxTo start new session
tmuxTo start new session in detached mode
tmux new -d "<your command here>"To split panel into left and right
Ctrl-b %To split panel into top and bottom
Ctrl-b "To navigate between panels
Ctrl-b <arrow key>To close a panel
exitor you can also
Ctrl-dTo create a new window
Ctrl-b cTo switch to the previous and next window (according to the order in your status bar)
Ctrl-b pCtrl-b nCtrl-b <number>To detach your current session
Ctrl-b dCtrl-b DTo see/list sessions that are running
tmux lsTo connect to that session you start tmux again but this time tell it which session to attach to
tmux attach -t <number>To start a new session with preferred name
tmux new -s <name>To rename your existing session
tmux rename-session -t <number> <name>To connect to existing session using name
tmux attach -t <name>To list all the available commands
Ctrl-b ?To toggle the panel between full screen and shrink to the previous size
Ctrl-b zTo resize the panel in any direction
Ctrl-b Ctrl-<arrow key>To rename the current window
Ctrl-b ,EbenGitHub