screen -S session_name
ctrl+a d
Note: you have to keep ctrl
pressed while pressing a
and then d
.
screen -R session_name
ctrl+a \
Note: \
has to be pressed without pressing the crtl
key. This is safer than writing directly inside the session:
exit
because it will ask you if you are sure to close the session, on the other hand exit
will brutally exit the session. Be careful, once the session is closed it cannot be restored.
screen -ls