Tuesday, May 09, 2017

Linux 'screen' command

It is very useful to use screen in the terminal leaving your session at work with a process and return to it at home. Below is example with steps sequence of using the 'screen'. 

$ script -c 'screen' /dev/null

$ screen -ls
There are screens on:
        32156.pts-8.host022     (Attached)
        25681.xdbfix    (Attached)
        3074.pts-8.host022      (Attached)
        25658.pts-2.host022     (Attached)
        1289.pts-11.host022     (Detached)
5 Sockets in /var/run/screen/S-oracle.



$ screen -r 1289.pts-11.host022

No comments: