The screen utility is not included on some server builds. You *have* to have screen or tmux as a DBA or long-running scripts and DML will timeout and the ssh daemon will boot you off the server. As a workaround, I copy the “screen” binary from /usr/bin/screen on a server that does have it installed ..
Check $STY. If it’s null, you’re on a “real” terminal. If it contains anything, it’s the name of the screen you’re in. If you are not in screen: eric@dev ~ $ echo $STY eric@dev ~ $ If you are in screen: eric@dev ~ $ echo $STY 2026.pts-0.ip..