Difference between revisions of "GNU/screen"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< GNU
Jump to navigation Jump to search
(→‎Notes: screen -r)
(attaching to an attaches screen)
Line 11: Line 11:
 
* <code>screen -ls</code> lists the available sessions.
 
* <code>screen -ls</code> lists the available sessions.
 
* <code>screen -r {{arg|pid.tty.host}}</code> reconnects to the specified session (note: .host is optional)
 
* <code>screen -r {{arg|pid.tty.host}}</code> reconnects to the specified session (note: .host is optional)
I haven't been able to figure out how to connect to a session other than the most recent one.
+
* If Screen refuses to connect to a specified session, that may be because it's already "attached" &ndash; use <code>screen -r -d {{arg|pid.tty.host}}</code> to detach it first if necessary.
  
From within screen:
+
From within Screen:
* <code>[CTRL-A] d</code> disconnects from the current session (but does not end it)
+
* <code>[CTRL-A] d</code> disconnects (detaches) from the current session (but does not end it)
  
 
==Outlinks==
 
==Outlinks==
 
===Reference===
 
===Reference===
 
* {{wikipedia|GNU Screen}}
 
* {{wikipedia|GNU Screen}}

Revision as of 22:34, 20 October 2015

About

GNU Screen is a GNU command line application which lets you create and access virtual terminal sessions.

Notes

From outside screen:

  • screen -R reconnects to the most recently-created session.
  • screen -ls lists the available sessions.
  • screen -r <pid.tty.host> reconnects to the specified session (note: .host is optional)
  • If Screen refuses to connect to a specified session, that may be because it's already "attached" – use screen -r -d <pid.tty.host> to detach it first if necessary.

From within Screen:

  • [CTRL-A] d disconnects (detaches) from the current session (but does not end it)

Outlinks

Reference