How can I list screen sessions by name?

眉间皱痕 提交于 2019-12-20 03:33:13

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!