[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any difference between `screen -r` vs `screen -x` when attaching to

From: Andrew Savchenko
Subject: Re: Any difference between `screen -r` vs `screen -x` when attaching to an already attached session?
Date: Tue, 5 Jul 2016 01:23:55 +0300


On Mon, 4 Jul 2016 18:15:50 -0400 Dun Peal wrote:
> Looking for a command that would attach to a screen session "foo", wether
> it is detached or not. It seems like `screen -x foo` would do it - it
> attaches to "foo" in both cases.
> But is it really the same?  Or is there any difference between `screen -x
> foo` and `screen -r foo` when "foo" is detached?
> Specifically, is there a reason to choose one over the other when "foo" is
> detached?

-x option is needed for multiple display mode, when several users
work the same screen (very useful when one needs to educate
someone :)), so -x doesn't detach session if it is attached.

-r is usually used in single user mode if session is already
detached. It can't attach to already attached session.

Best regards,
Andrew Savchenko

Attachment: pgpkUJWa6x3r4.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]