HomePage » Linux » LinuxTerminal

Using screen for session management

Using screen manager, one can multiplex the same terminal to multiple. Multiple users can join the same screen session. Multiple screens can be created on the same screen session. Even if one "detach" from a screen, it will continue to work in background. Useful for running time-consuming tasks. Screen logging can be enabled as well.

On current window, type
screen -D -R
# ^aDD to destroy sessions


Then list the screen number
[root@gigan root]# screen -ls
There are screens on:
	    31619.ttyp2.gigan       (Detached)
	    4731.ttyp2.gigan        (Detached)
2 Sockets in /tmp/screens/S-root.


On subscribing terminal, type screen -xr <screen number>
screen -xr 31619.ttyp2.gigan
# ^ad to quit session.


To detach, type ^a^d
To end current session, type exit

Screen sessions
On source window, type ^ac to create new sessions. ^aa to switch between sessions.
Comments [Hide comments/form]
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki