How can I tell whether I'm in a screen?

后端 未结 9 1705
悲哀的现实
悲哀的现实 2020-12-07 18:11

When using screen in linux, how can I tell if I\'m in a screen or not? I could do exit and I\'ll exit a screen if I was in one, but if I wasn\'t, then I\'ll end

9条回答
  •  一生所求
    2020-12-07 18:53

    Alternative approach to check if you are in screen.

    type:

    Ctrl-a ?
    

    If you see the screen help you are in screen.

    Otherwise you'll get a question mark '?' on the prompt.

提交回复
热议问题