Screen - Guía básica UNIX

Screen - Guía básica UNIX

  1. Identify the name of the session:
 $ screen -ls
  1. Close a session:
$ screen -XS <session-id> quit
  • Rationale: -X = Execute command, -S session PID to execute on
  • Example: screen -XS 20411 quit

Inicio linea

C A A

Scroll

C A Esc

Ideas

https://superuser.com/questions/255244/start-gnu-screen-automatically https://superuser.com/questions/52297/use-gnu-screen-as-login-shell

Instead of using screen -r which tries to resume a screen session, you can use screen -R which tries to resume a screen session and creates a new one if one doesn’t exist.

screen -DRA.

-D -R   Attach here and now. In detail this means: If a session is run-
        ning, then reattach. If necessary detach  and  logout  remotely
        first.   If  it  was not running create it and notify the user.
        This is the author's favorite.
-A      Adapt  the  sizes of all windows to the size of the current termi-
        nal.  By default, screen tries to restore  its  old  window  sizes
        when  attaching  to  resizable  terminals  (those with "WS" in its
        description, e.g. suncmd or some xterm).
Actualizado el