Screen is a nice utility to multiplex several consoles over a single connection to a remote machine.
Besides allowing us to switch between as many consoles as we want over a single connection, screen also remains running even after logging out, thus making it possible to leave programs running on the remote computer without having a permanent connection.
Screen has many other features like copy/paste of text between any consoles on same screen, if for some reason you aren't able or don't want to use the mouse.
Below is the list of commands I find most useful for every day tasks on screen and settings to enable a status line that will inform you of how many consoles you have along with the machine id and date/time.
Place the next two lines into ~/.screenrc to enable a status line.
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]'
Here's how it looks like with the status line configured as presented above:
To learn more about screen, read the online manual at http://www.gnu.org/software/screen/manual/.
I hope you find this short introduction helpful!
Published on Monday 2013/04/29, last modified on Tuesday 2013/04/30