Screen: Difference between revisions

From Grid5000
Jump to navigation Jump to search
m (first draft)
 
No edit summary
 
(26 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Warning|text=This page is under construction}}
{{Portal|User}}
{{Portal|Tutorial}}
{{TutorialHeader}}{{Portal|Admin}}
<code class="command">screen</code> is a screen manager with VT100/ANSI terminal emulation. It is the older brother of <code class="command">tmux</code>, which shares quite the same concepts.


= Multiuser mode =
== Basics ==
* Start a screen session (creates a single window with a  shell  in  it):
<code class="command">screen</code>
* OR start a linux command in a screen session:
<code class="command">screen </code><code class="replace"><linux command></code>
* Invoke a screen control command (it consists of a "Ctrl + a" followed by one other character):
C-a <code class="replace"><command_char></code>
Basics screen commands are :
C-a C-c : Create a new window with a shell and switch to that window.
C-a "  : Present a list of all windows for selection.
C-a A  : Allow  the  user to enter a name for the current window.
C-a C-k : Kill current window
Further options are available in the man pages.


  <code class="command">chmod</code> +s /usr/bin/screen
* Detach from this screen terminal (program continues to run when its associated screen session is detached):
  C-a d : Detach screen from this terminal.


  Ctrl + a <code>:multiuser on</code>
* Reattach a session (brings foreground a previously detached session):
<code class="command">screen</code> -r
* Invoke a screen customization command (used to set options):
  C-a : <code class="replace"><customization_command></code>


Ctrl + a <code>:acladd root</code>
{{Note|text=See the man of screen for more information and other capabilities of <code>screen</code>. See also <code>tmux</code>}}
 
<code class="command">screen</code> -x xdelaruelle

Latest revision as of 13:51, 9 July 2020

Note.png Note

This page is actively maintained by the Grid'5000 team. If you encounter problems, please report them (see the Support page). Additionally, as it is a wiki page, you are free to make minor corrections yourself if needed. If you would like to suggest a more fundamental change, please contact the Grid'5000 team.

screen is a screen manager with VT100/ANSI terminal emulation. It is the older brother of tmux, which shares quite the same concepts.

Basics

  • Start a screen session (creates a single window with a shell in it):
screen
  • OR start a linux command in a screen session:
screen <linux command>
  • Invoke a screen control command (it consists of a "Ctrl + a" followed by one other character):
C-a <command_char>

Basics screen commands are :

C-a C-c : Create a new window with a shell and switch to that window.
C-a "   : Present a list of all windows for selection.
C-a A   : Allow  the  user to enter a name for the current window.
C-a C-k : Kill current window

Further options are available in the man pages.

  • Detach from this screen terminal (program continues to run when its associated screen session is detached):
C-a d : Detach screen from this terminal.
  • Reattach a session (brings foreground a previously detached session):
screen -r
  • Invoke a screen customization command (used to set options):
C-a : <customization_command>
Note.png Note

See the man of screen for more information and other capabilities of screen. See also tmux