问题
With screen, I know I can name & re-attach to sessions by name:
screen -S <name>
screen -r <name>
When I execute screen -ls
I get a list sessions, but the name is not displayed.
How do I see the names of my running sessions?
回答1:
When you do screen -ls
, the session name comes after the TTY number.
Here, I have three screen sessions running with the names dev1
, daemons
, and dbconns
:
dev1:~$ screen -ls
Your inventory:
16101.pts-1.dev1 (Multi, attached)
30265.daemons (Multi, attached)
1691.dbconns (Multi, attached)
3 Sockets in /tmp/uscreens/S-dstephens.
来源:https://stackoverflow.com/questions/3680607/how-can-i-list-screen-sessions-by-name