I'm new to screen and I'm trying to figure out how to detach from a session and reattach later. So far I've tried:
$screen C-a z (within screen to detach) $screen -r
So far so good but when I
C-a z to detach again, I see 2 screen processes running:
$ps PID TTY TIME CMD 33145 ttys000 0:00.06 -bash 33176 ttys000 0:00.01 screen 33407 ttys000 0:00.01 screen -r
If I detach and reattach again I get another screen process, etc...
So, how can I reattach to the screen session without spawning a new process?