Exercise 1: Creating, Naming and Switching Windows — Possible Solution ======================================================================== Steps: screen -S work # window 0 is created automatically Ctrl-a A edit # name window 0 "edit" Ctrl-a c # new window 1 Ctrl-a A logs # name it "logs" Ctrl-a c # new window 2 Ctrl-a A shell # name it "shell" Switching: Ctrl-a n / Ctrl-a p # cycle next / previous Ctrl-a 0 # jump to "edit" Ctrl-a " # list: 0 edit, 1 logs, 2 shell — pick one Ctrl-a ' logs # jump by name Close "logs": switch to it and type exit (or Ctrl-a k). The windows are now 0 edit and 2 shell. Open a new window with Ctrl-a c. It becomes window 1. Why: screen gives a new window the lowest free number. Number 1 was freed when "logs" closed, so it is reused, filling the gap rather than becoming window 3. WHY THIS WORKS AS AN ANSWER ------------------------------ It exercises every way of switching and shows why names are more reliable than numbers: numbers get reused, so "window 1" can mean a different window from one moment to the next.