User Tools

Site Tools


screen_session

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
screen_session [2016/02/25 14:09] luke7858screen_session [2024/05/23 07:26] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
 === Install === === Install ===
-<sxh bash> 
-# yum info screen.x86_64 
-Loaded plugins: changelog, fastestmirror, replace 
-Loading mirror speeds from cached hostfile 
- * ius: lon.mirror.rackspace.com 
-drivesrvr                                                                                                          | 2.2 kB     00:00      
-Available Packages 
-Name        : screen 
-Arch        : x86_64 
-Version     : 4.0.3 
-Release     : 18.el6 
-Size        : 494 k 
-Repo        : base 
-Summary     : A screen manager that supports multiple logins on one terminal 
-URL         : http://www.gnu.org/software/screen 
-License     : GPLv2+ 
-Description : The screen utility allows you to have multiple logins on just one 
-            : terminal. Screen is useful for users who telnet into a machine or are 
-            : connected via a dumb terminal, but want to use more than just one 
-            : login. 
-            :  
-            : Install the screen package if you need a screen manager that can 
-            : support multiple logins on one terminal. 
-</sxh> 
 <sxh bash> <sxh bash>
 yum install screen yum install screen
Line 39: Line 15:
 <sxh bash> <sxh bash>
 screen screen
 +</sxh>
 +Creating a screen session with session name:
 +<sxh bash>
 +screen -S <name>
 </sxh> </sxh>
 \\ \\
Line 44: Line 24:
 <sxh bash> <sxh bash>
 screen -list screen -list
 +</sxh>
 +or
 +<sxh bash>
 +screen -ls
 </sxh> </sxh>
 Example Example
Line 49: Line 33:
 # screen -list # screen -list
 There are screens on: There are screens on:
- 6470.pts-1.LLL (Detached) + 6470.pts-1.hostname (Detached) 
- 6839.pts-1.LLL (Detached)+ 6839.pts-1.hostname (Detached)
 2 Sockets in /var/run/screen/S-root. 2 Sockets in /var/run/screen/S-root.
 </sxh> </sxh>
-\\ +
-<sxh bash> +
-# screen -ls +
-There is a screen on: +
-        6470.pts-1.LLL  (Attached) +
-1 Socket in /var/run/screen/S-root. +
-</sxh>+
 \\ \\
 === Detach from screen sessions === === Detach from screen sessions ===
Line 66: Line 44:
 This will leave the current command running: This will leave the current command running:
 <sxh bash> <sxh bash>
-Ctrl-A” and d” to detach the screen+"Ctrl-Aand "dto detach the screen
 </sxh> </sxh>
 \\ \\
 === Closing the screen session === === Closing the screen session ===
 <sxh bash> <sxh bash>
 +"Ctrl-D"
 </sxh> </sxh>
 \\ \\
 === Entering back into a screen session === === Entering back into a screen session ===
 <sxh bash> <sxh bash>
-screen -r +screen -r 6470.pts-1.hostname
 </sxh> </sxh>
 +\\
 +=== Cycle through screen sessions ===
 +<sxh bash>
 +"Ctrl-a"
 +</sxh>
 +\\
 +\\
 +=== Enable Scrolling In Screen Sessions ===
 +Ctrl + a then hit Esc
screen_session.1456409345.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki