preload
Nov 25

People often underestimate the usefulness of the linux-command screen.

What does screen do? Screen creates a terminal session for the actual user.

Type:

1
screen

to create a terminal session.

Or type:

1
screen -S <sessionname>

where <sessionname> should be replaced with your own name.

Create a new window:

1
Crtl+a c

which means (Press Control and a together and after that press c)

Now we created a second window. To list all created windows in the actual session type:

1
Crtl+a "

Germans have to press Shift+2 for “.

Now the two created windows will be shown:

Bildschirmfoto 2009-11-25 um 14.55.07

Just choose one Window and press enter.

To quit your actual work an detach the session:

1
Crtl+a d

To list all active sessions:

1
screen -list

You should see a similar picture like the following:

Bildschirmfoto 2009-11-25 um 15.03.27

Here you can see the name of the session: 1597.stefan

To restore the session simply type:

1
screen -r stefan

Maybe you have to type the complete id with 1597.stefan if there exist another session with the same name.

Leave a Reply