The following are some of the most used shortcuts that lets you navigate through your screen environment. Note that unless modified by your .screenrc, by default every screen shortcut is preceded by Ctrl+a. Note that these shortcuts are case-sensitive (so use shift A and K...)
Dont forget to hit Ctrl+a first, then your command (not at same time)
Find out about more shortcuts in Screen's man pages. In your
I like to leave a screen session open on all my servers, then re-connect to them at the terminal or through ssh
On the server you must first set the SUID bit with sudo chmod +s /usr/bin/screen, then sudo chmod 755 /var/run/screen/. See http://www.pixelbeat.org/docs/screen/
Install screen profiles
sudo apt-get install screen screen-profiles screen-profiles-extras
Then run the command byobu to start screen, then press F9 for a nice config menu
Screen keeps its configuration file in the same vein that many applications do: in a dot file in your user's home directory. This file is aptly named .screenrc. In my experience, most people use ~/.screenrc to do two things:
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}]' # Default screens screen -t shell1 0 #screen -t shell2 1 #screen -t server 2 ssh me@myserver