User Tools

Site Tools


wiki:screen

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
wiki:screen [2020/04/29 15:06] – [Using Screen] walkeradminwiki:screen [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 185: Line 185:
 The program running in the screen session will continue to run after you detach from the session. The program running in the screen session will continue to run after you detach from the session.
 \\  \\ 
 +\\ 
 +**Reattach to a Linux Screen**
 +\\ 
 +\\ 
 +To resume your screen session use the following command: (and this is the whole point of this article :)   )
 +\\ 
 +    screen -r
 +\\ 
 +\\ 
 +In case you have multiple screen sessions running on your machine, you will need to append the screen session ID after the r switch.
 +\\ 
 +\\ 
 +To find the session ID list the current running screen sessions with:
 +\\ 
 +    screen -ls
 +\\ 
 +Output is: (your session numbers/names will differ)
 +\\ 
 +<file>
 +There are screens on:
 +    10835.pts-0.linuxize-desktop   (Detached)
 +    10366.pts-0.linuxize-desktop   (Detached)
 +2 Sockets in /run/screens/S-linuxize.
 +</file>
 +\\ 
 +If you want to restore screen 10835.pts-0, then type the following command:
 +\\ 
 +    screen -r 10835
 +\\ 
 +\\ 
 +\\ 
 +
 +----
 +\\ 
 +Plagurised from : [[https://linuxize.com/post/how-to-use-linux-screen/]] (i do this in case their site goes down/gets closed etc).
 +
 +
wiki/screen.1588169180.txt.gz · Last modified: 2023/03/09 22:35 (external edit)