software/screen
Re-attach uniquely
If you are attached to a remote screen over SSH and the connection drops, then you re-attach later with screen -x
, there will still be some pseudo-zombie sessions attached. This is annoying because the new sessions will have their display dimensions locked to the dimensions of the old sessions. To connect to a screen session as the only client (disconnecting all the old half-dead sessions), use:
$ screen -d -r
Disable default bash completions
At least on debian wheezy, screen has tab completions which prevent, eg:
$ screen /dev/ttyU<TAB>
from completing as /dev/ttyUSB0
et al.
To disable this, go to /usr/share/bash-completion/completions
and sudo mv screen screen.disabled
.