Saturday 15 February 2014

linux - how can i force screen to detach *instead of* exit/logout? -



linux - how can i force screen to detach *instead of* exit/logout? -

i utilize screen time , attaching/detaching different sessions. i'll accidentally logout/exit instead of detach, losing buffer of work on project. i'd rather not have detach (ctl-a ctl-d) , exit (ctl-d) commands close.

is there way forcefulness screen ever detach instead of exit?

the main problem isn't screen, it's shell within of it. can create ignore ctrl+d or handle differently. bash, try

export ignoreeof=4

which means you'll have press ctrl+d 4 times exit shell.

see question more solutions: http://unix.stackexchange.com/questions/27588/how-can-i-keep-controld-from-disconnecting-my-session

linux screen

No comments:

Post a Comment