1

I can start a screen session with:

screen "commandhere"

which will start a screen session, running the "commandhere".

The question: how can I name this screen session automatically?

0

Use -S, for example:

screen  -S my-new-session sleep 100

You can then see a new session in a list of sessions:

$ screen -ls
There are screens on:
26667.my-new-session    (Attached)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.