Rename an unnamed screen session in linux

Forgot to give a name to a screen when starting it?

all you need is the screen id number, which you can find with

$ screen -list

and rename it like this:

$ screen -rd id_number -X sessionname new_screen_name

where id_number is found from the list and new_screen_name is the name you want for the screen session.

Screenshot from command line in linux.

Screenshot from command line in linux.