How can I tell if I'm currently in a screen session?
echo $STY
If "" is returned, you're not in a screen. If something else is returned (i.e. the screen name), you're in a screen.
Written by Derek Chinn
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Console
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#