Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My GNU screen stores its sessions in the /tmp directory.

That means that after a reboot, all sessions are lost:

$ screen -list 
No Sockets found in /tmp/uscreens/S-dehmann.

How can I tell it to store them in a specific directory in my home directory, where they won't be lost so easily?

share|improve this question
    
What good are the sockets after a reboot? The controlling SCREEN process, and all its children will have been terminated. –  neirbowj Aug 19 '13 at 16:43

1 Answer 1

up vote 6 down vote accepted

From the manual:

The "socket directory" defaults either to $HOME/.screen or simply to
/tmp/screens or preferably to /var/run/screen chosen at  compile-time...

By setting the environment variable SCREENDIR you can change the default behavior.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.