Aly
Aly

Reputation: 16265

Naming a screen session in Linux

I am running multiple screens from one ssh connection, when I list all of the screens via screen -ls the names are not very descriptive and when I have multiple screens it becomes hard to remember what is running on each. Does anyone know how to name these sessions (preferably when creating the screen).

Upvotes: 1

Views: 1297

Answers (2)

vector
vector

Reputation: 503

screen -S sessionname

When creating a new session, this option can be used to specify a meaningful name for the session. This name identifies the session for "screen -list" and "screen -r" actions. It substitutes the default [tty.host]

check this http://aperiodic.net/screen/quick_reference for more info...

Upvotes: 0

Alan Haggai Alavi
Alan Haggai Alavi

Reputation: 74252

You can make use of the -S flag:

screen -S name_for_this_session

Upvotes: 5

Related Questions