https://gist.github.com/simme/1297707
tmux new -s <session-name>
tmux attach -t <session-name>
tmux ls
tmux kill-session -t <session-name>
In tmux window, all commands runs with CTRL-b prefixed followed by command as below
c Create new window
w List all windows
, Rename current window
p Goto previous window in list from current window
n Goto next window in list from current window
l Goto last used window
% Split vertically
" Split horizontally
d Detach from session
t Show big clock
: prompt, Used to type any tmux command like :split-window to split window horizontally
s List all sessions, can be switched to another session
[ Make page up/down and mouse scroll work on window
q Exit from scroll mode
z Maximize/minimize current pane
:new Create a new session
ArrowKeys Switch between splitted windows of a session
To resize splitted windows, keep on pressing CTRL-b and use arrow keys to adjust windows