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 up closing my terminal.
When doing screen -r
, I could see if I have other screens attached, but how do I know if my current terminal is one of those attached screens?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…