Screen command benefits<\/p>\n\n\n\n
The command to create a screen session is<\/p>\n\n\n\n
screen -t <screen name> -S <socket file name><\/p><\/blockquote>\n\n\n\n
To detach a screen session<\/p>\n\n\n\n
ctrl+a + d<\/p><\/blockquote>\n\n\n\n
To list the screen sessions<\/p>\n\n\n\n
screen -ls<\/p><\/blockquote>\n\n\n\n
To reattach the screen session<\/p>\n\n\n\n
screen -r <pid\/name from the list><\/p><\/blockquote>\n\n\n\n
Presume you lost the console where the screen was running before detaching the screen. You can detach and reattach using the below command<\/p>\n\n\n\n
screen -dr <pid\/name from the list><\/p>\n","protected":false},"excerpt":{"rendered":"
Screen command benefits Can be used to launch multiple shells from a single SSH session. Detach and re-attach from multiple ssh session. Running process which can take more time and need session to be kept alive. To keep the session alive without any network disruptions. The command to create a screen session is screen -t […]<\/p>\n","protected":false},"author":29,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[1524,1462,1485,1318],"class_list":["post-2080","post","type-post","status-publish","format-standard","hentry","category-tips","tag-command","tag-linux","tag-screen","tag-tips-2"],"_links":{"self":[{"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/posts\/2080","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2080"}],"version-history":[{"count":3,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/posts\/2080\/revisions"}],"predecessor-version":[{"id":2297,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/posts\/2080\/revisions\/2297"}],"wp:attachment":[{"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2080"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2080"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2080"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}