------------------------------------------------------------------------------- TMux is a Screen like multiplexer for a terminal window (generally a large window so you can split it up) https://github.com/tmux/tmux/wiki/Getting-Started ------------------------------------------------------------------------------- To use tmux (terminal multiplexer) by default, add the following to your .bash_profile on the remote machine. This will automatically start tmux when you log in and if you have a session already (that was cut off e.g. by your vpn dropping out) it will re-attach to your sessions where you left off (this is one of the many benefits of using tmux) if [ -t 0 ] && [ -z ${TMUX} ]; then /usr/bin/tmux attach || /usr/bin/tmux fi ------------------------------------------------------------------------------- Some useful Tmux commands (there are many but these are the main ones I use): ctrl-b % - adds a new session with a vertical split ctrl-b " - adds a new session with a horisontal split ctrl-b e - join all sessions - so you type the same in all of them at once ctrl-b E - un-join sessions ctrl-b z - zoom/unzoom into/out of active session as mentioned, if you have a joined session, when zooming in it will only type in the zoomed session which is very useful, ctrl-b ? - list all possible commands - there are many! -------------------------------------------------------------------------------