告诉GNU屏幕保存会话的位置?


8

我的GNU屏幕将其会话存储在/tmp目录中。

这意味着重启后,所有会话都会丢失

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

如何告诉它将它们存储在我的主目录中的特定目录中,它们不会那么容易丢失?


1
重启后套接字有什么用?控制SCREEN进程及其所有子进程将被终止。
neirbowj 2013年

Answers:


9

从手册:

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

通过设置环境变量,SCREENDIR您可以更改默认行为。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.