It’s just several lines of tmux commands to not to forget and start googling again;)
tmux is a terminal multiplexer: it enables a number of terminals (or windows), each running a separate program, to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.
tmux attach || tmux new — attaches to existing server process or creates new if it does not exist.
When you are in tmux terminal window you can use next commands to manage your session:
Ctrl+b d — to exit.
Ctrl+b c — to create new window;
Ctrl+b 0…9 — to switch to window number;
Ctrl+b p — to switch to previous window;
Ctrl+b n — to switch to next window;
Ctrl+b l — to switch to previous active window (from which you switched to current);
Ctrl+b & — to close window (you can also type exit).
In one window you can have several panels:
Ctrl+b % — to split current window to 2 panels vertically;
Ctrl+b “ — to split current window to 2 panels horizontally;
Ctrl+b →←↑↓ — to switch between panels;
Ctrl+b x — to close panel (or you can do this by typing exit).
Hope this will help someone.