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?

link|improve this question

63% accept rate
feedback

1 Answer

up vote 5 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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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