A handy tool for dealing with different bash sessions is tmux. It’s comparable with gnu screen but by far more advanced. You can get it with:

Launch it by typing:

Dealing with sessions brings great power. You can set up your multi-windows panes on a remote machine, in a seperate session. Now you can detach from this session and log out. When you later ssh back into this machine you can reattach this session and all your views are restored.

Executing commands tmux specific is usually prefixed with the key combination ctrl+b. See the following list what you can do with tmux.