Difference between revisions of "Package:Screen"

From Funtoo
Jump to navigation Jump to search
(initial commit so users can observe remote ssh login users over hamachi vpn techniques to fix hangups. =D)
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Screen is a useful terminal multiplexer.
Screen is a useful terminal multiplexer. This means that when installed, you can start {{c|screen}} and create virtual terminals, and switch between them using a special command sequence.
 
{{console|body=
{{console|body=
###i## emerge app-misc/screen
###i## emerge app-misc/screen
}}
}}
== Basics ==
To start a new screen session and make it active:
{{console|body=
###i## screen
%in-screen%
}}
You are now "inside" a screen session. You can now create new virtual terminals by pressing Ctrl-A C, and use Ctrl-A N to cycle between them. Press Ctrl-A D to "detach" from your session. Your virtual terminals will keep running in the background, even if you log out.
To re-attach to your session, which can be done even after logging in on a different terminal or ssh session, but as the same user, type:
{{console|body=
###i## screen -r -d
%in-screen%
}}
== Advanced Usage ==


Start a named detached session:
Start a named detached session:

Latest revision as of 16:55, October 27, 2020

Screen is a useful terminal multiplexer. This means that when installed, you can start screen and create virtual terminals, and switch between them using a special command sequence.

root # emerge app-misc/screen

Basics

To start a new screen session and make it active:

root # screen
in-screen #

You are now "inside" a screen session. You can now create new virtual terminals by pressing Ctrl-A C, and use Ctrl-A N to cycle between them. Press Ctrl-A D to "detach" from your session. Your virtual terminals will keep running in the background, even if you log out.

To re-attach to your session, which can be done even after logging in on a different terminal or ssh session, but as the same user, type:

root # screen -r -d
in-screen #

Advanced Usage

Start a named detached session:

root # screen -d -m -S funtoo

Attach to a named session, multiple clients may connect at the same time:

root # screen -x funtoo

kill all screens and dump back into good old bash:

root # ctrl +a :quit