{"id":6205,"date":"2023-08-05T11:34:45","date_gmt":"2023-08-05T11:34:45","guid":{"rendered":"https:\/\/www.webhi.com\/how-to\/?p=6205"},"modified":"2023-08-05T11:34:47","modified_gmt":"2023-08-05T11:34:47","slug":"how-to-install-and-use-screen-to-manage-terminal-sessions-linux-ubuntu-debian-centos","status":"publish","type":"post","link":"https:\/\/www.webhi.com\/how-to\/how-to-install-and-use-screen-to-manage-terminal-sessions-linux-ubuntu-debian-centos\/","title":{"rendered":"How to install and use Screen to manage Terminal Sessions on Linux"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1200\" height=\"675\" src=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/08\/screen_ubuntu_en.jpg\" alt=\"Use Screen to Manage Terminal Sessions on Ubuntu Debian CentOS RedHat\" class=\"wp-image-6229\" srcset=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/08\/screen_ubuntu_en.jpg 1200w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/08\/screen_ubuntu_en-300x169.jpg 300w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/08\/screen_ubuntu_en-1024x576.jpg 1024w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/08\/screen_ubuntu_en-768x432.jpg 768w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/08\/screen_ubuntu_en-150x84.jpg 150w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p><strong>Screen <\/strong>is a terminal multiplexer that allows you to run multiple terminal sessions inside a single terminal window or SSH session. It can be very useful on remote servers like Ubuntu cloud servers where you want to run long-running processes that you can disconnect from and reattach to later.<\/p>\n\n\n\n<p>Here is how to install and use screen on an Ubuntu cloud server:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installing-screen\">Installing Screen<\/h2>\n\n\n\n<p>Screen should be installed by default on most Ubuntu distributions. You can check if it is already installed by running:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ screen -v<\/code><\/pre>\n\n\n\n<p>If it is installed, you will see output like:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">Screen version 4.08.00 (GNU) 5-Oct-20<\/code><\/pre>\n\n\n\n<p>If it is not installed, install it with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt update\n$ sudo apt install screen<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"starting-a-screen-session\">Starting a screen Session<\/h2>\n\n\n\n<p>To start a new screen session, just run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ screen<\/code><\/pre>\n\n\n\n<p>You will be presented with a blank terminal screen. Anything you run here will be inside the screen session.<\/p>\n\n\n\n<p>You can also start a named screen session by providing a session name:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ screen -S session1<\/code><\/pre>\n\n\n\n<p>To see a list of running screen sessions:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ screen -ls<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"detaching-and-reattaching-to-a-screen\">Detaching and Reattaching to a Screen<\/h2>\n\n\n\n<p>To detach from a screen session while keeping it running, press&nbsp;<strong>Ctrl+A<\/strong>&nbsp;followed by&nbsp;<strong>D<\/strong>.<\/p>\n\n\n\n<p>You will return to your normal terminal prompt while the screen session continues running in the background.<\/p>\n\n\n\n<p>To reattach to a detached screen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ screen -r session1<\/code><\/pre>\n\n\n\n<p>Replace &#8220;session1&#8221; with the name of your screen session.<\/p>\n\n\n\n<p>You can omit the session name to attach to your most recent detached session.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"handy-screen-commands\">Handy Screen Commands<\/h2>\n\n\n\n<p>Here are some handy commands to use inside a screen session:<\/p>\n\n\n\n<ul>\n<li><strong>Ctrl+A D<\/strong>&nbsp;&#8211; Detach from the current session<\/li>\n\n\n\n<li><strong>Ctrl+A K<\/strong>&nbsp;&#8211; Kill the current session<\/li>\n\n\n\n<li><strong>Ctrl+A C<\/strong>&nbsp;&#8211; Create a new window (tab) in the session<\/li>\n\n\n\n<li><strong>Ctrl+A N<\/strong>&nbsp;&#8211; Switch to next window<\/li>\n\n\n\n<li><strong>Ctrl+A P<\/strong>&nbsp;&#8211; Switch to previous window<\/li>\n\n\n\n<li><strong>Ctrl+A 0-9<\/strong>&nbsp;&#8211; Switch to window number 0-9<\/li>\n\n\n\n<li><strong>Ctrl+A A<\/strong>&nbsp;&#8211; Rename the current window<\/li>\n\n\n\n<li><strong>Ctrl+A \\<\/strong>&nbsp;&#8211; Split current region horizontally<\/li>\n\n\n\n<li><strong>Ctrl+A |<\/strong>&nbsp;&#8211; Split current region vertically<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"configuring-screen\">Configuring Screen<\/h2>\n\n\n\n<p>You can configure options for screen in the ~\/.screenrc file. Useful settings include:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"properties\" class=\"language-properties\"># Enable mouse scrolling  \ntermcapinfo xterm* ti@:te@\n\n# Change escape key from Ctrl+A to Ctrl+B\nescape ^Bb\n\n# Change screen log file location\nlogfile ~\/.screens\/screenlog.%n<\/code><\/pre>\n\n\n\n<p>See the screen manual page for more configuration options.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"scrolling-in-screen\">Scrolling in Screen<\/h2>\n\n\n\n<p>Screen does not allow scrolling up through previous output like a normal terminal.<\/p>\n\n\n\n<p>To enable scrolling, you need to use a screen command:<\/p>\n\n\n\n<ul>\n<li><strong>Ctrl+A [<\/strong>&nbsp;&#8211; Enter scrollback mode. You can now scroll through your terminal history with the arrow keys.<\/li>\n\n\n\n<li><strong>Ctrl+C<\/strong>&nbsp;&#8211; Exit scrollback mode.<\/li>\n<\/ul>\n\n\n\n<p>Alternatively, you can enable scrollback buffer in your ~\/.screenrc file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"properties\" class=\"language-properties\">defscrollback 30000 <\/code><\/pre>\n\n\n\n<p>This will store the last 30,000 lines of output and allow you to scroll through them.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"screen-with-ssh\">Screen with SSH<\/h2>\n\n\n\n<p>You can attach and reattach to a screen session over SSH.<\/p>\n\n\n\n<p>Start a screen on the remote server, then detach it as normal with&nbsp;<strong>Ctrl+A D<\/strong>.<\/p>\n\n\n\n<p>Log out of your SSH session and log back in later. Reattach to your previous session using:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ screen -r<\/code><\/pre>\n\n\n\n<p>This allows you to continue running processes on a remote server even when disconnected.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"tmux-vs-screen\">Tmux vs Screen<\/h2>\n\n\n\n<p>Screen has some similarities with tmux, another terminal multiplexer. Key differences:<\/p>\n\n\n\n<ul>\n<li>Tmux has a more modern codebase and some additional features like splitting panes<\/li>\n\n\n\n<li>Screen is more lightweight and simpler, using less memory\/resources<\/li>\n\n\n\n<li>Screen commands use Ctrl+A, tmux use Ctrl+B<\/li>\n\n\n\n<li>Tmux is still actively maintained, screen development has slowed<\/li>\n<\/ul>\n\n\n\n<p>So in summary, tmux may be preferable for new users who want more features, but screen remains a solid choice for lightweight terminal multiplexing.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"screen-man-page\">Screen Man Page<\/h2>\n\n\n\n<p>The screen man page contains a wealth of useful information on all the command line options and configuration settings available.<\/p>\n\n\n\n<p>You can access it by running:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ man screen<\/code><\/pre>\n\n\n\n<p>Some highlights from the man page:<\/p>\n\n\n\n<p><strong>Command Line Options<\/strong><\/p>\n\n\n\n<p>Here are some common command line options when launching screen:<\/p>\n\n\n\n<ul>\n<li><code>-S sessionname<\/code>&nbsp;&#8211; Name the new screen session<\/li>\n\n\n\n<li><code>-d -m<\/code>&nbsp;&#8211; Start screen in detached mode<\/li>\n\n\n\n<li><code>-r<\/code>&nbsp;&#8211; Reattach to a detached screen session<\/li>\n\n\n\n<li><code>-ls<\/code>&nbsp;&#8211; List currently running screen sessions<\/li>\n\n\n\n<li><code>-wipe<\/code>&nbsp;&#8211; Clear screen&#8217;s internal state and remove all sessions<\/li>\n<\/ul>\n\n\n\n<p><strong>Configuration File<\/strong><\/p>\n\n\n\n<p>The ~\/.screenrc file controls screen&#8217;s behavior:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"properties\" class=\"language-properties\"># Set default window name  \nscreen -t shell\n\n# Set screen logging file\nlog on\nlogfile ~\/screenlog.0\n\n# Set scrollback buffer size\ndefscrollback 30000<\/code><\/pre>\n\n\n\n<p><strong>Bound Commands<\/strong><\/p>\n\n\n\n<p>Binding commands to keystrokes is done like:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"properties\" class=\"language-properties\"># Bind Ctrl+A C to create a new window  \nbind C create \n\n# Bind Ctrl+A n to switch to next window\nbind n next<\/code><\/pre>\n\n\n\n<p><strong>Copy\/Paste<\/strong><\/p>\n\n\n\n<p>Screen offers copy\/paste support:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\"># Enter copy mode\nCtrl+A [ \n\n# Begin selecting text with arrow keys\n# Copy selected text\nCtrl+A ]\n\n# Paste copied text\nCtrl+A ]<\/code><\/pre>\n\n\n\n<p><strong>Windows<\/strong><\/p>\n\n\n\n<p>Managing windows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\"># Create new window\n$ screen -t test\n\n# Switch between windows \nCtrl+A n \n\n# Kill current window\n$ quit<\/code><\/pre>\n\n\n\n<p>This covers some of the most popular screen usage direct from the man page. Refer to man screen for more details.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h2>\n\n\n\n<p>Screen is a handy utility for running processes on remote servers like Ubuntu cloud VMs where you want to detach and reattach to sessions.<\/p>\n\n\n\n<p>Key tasks covered:<\/p>\n\n\n\n<ul>\n<li>Installing screen on Ubuntu<\/li>\n\n\n\n<li>Starting and detaching screen sessions<\/li>\n\n\n\n<li>Reattaching to screen sessions<\/li>\n\n\n\n<li>Using screen commands for managing windows<\/li>\n\n\n\n<li>Configuring scrollback buffer and ~\/.screenrc settings<\/li>\n\n\n\n<li>Integrating screen with SSH<\/li>\n<\/ul>\n\n\n\n<p>Screen remains relevant today alongside newer tools like tmux and is worth learning if you manage remote Linux servers. It provides an easy way to keep sessions running even when you get disconnected from the server.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Screen is a terminal multiplexer that allows you to run multiple terminal sessions inside a single terminal window or SSH session. It can be very useful on remote servers like Ubuntu cloud servers where you want to run long-running processes that you can disconnect from and reattach to later. Here is how to install and ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/www.webhi.com\/how-to\/how-to-install-and-use-screen-to-manage-terminal-sessions-linux-ubuntu-debian-centos\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[69],"tags":[],"yoast_head":"\n<title>How to install and use Screen to manage Terminal Sessions on Linux - WebHi Tutorials &amp; Documentations<\/title>\n<meta name=\"description\" content=\"Learn how to install and configure Screen on Ubuntu Linux to manage persistent terminal sessions. Detach and reattach to running processes over SSH.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webhi.com\/how-to\/how-to-install-and-use-screen-to-manage-terminal-sessions-linux-ubuntu-debian-centos\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install and use Screen to manage Terminal Sessions on Linux - WebHi Tutorials &amp; Documentations\" \/>\n<meta property=\"og:description\" content=\"Learn how to install and configure Screen on Ubuntu Linux to manage persistent terminal sessions. Detach and reattach to running processes over SSH.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhi.com\/how-to\/how-to-install-and-use-screen-to-manage-terminal-sessions-linux-ubuntu-debian-centos\/\" \/>\n<meta property=\"og:site_name\" content=\"WebHi Tutorials &amp; Documentations\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webhi.technology\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-05T11:34:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-05T11:34:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/08\/screen_ubuntu_en.jpg\" \/>\n<meta name=\"author\" content=\"webhi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@WebHiTechnology\" \/>\n<meta name=\"twitter:site\" content=\"@WebHiTechnology\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"webhi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-install-and-use-screen-to-manage-terminal-sessions-linux-ubuntu-debian-centos\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-install-and-use-screen-to-manage-terminal-sessions-linux-ubuntu-debian-centos\/\"},\"author\":{\"name\":\"webhi\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54\"},\"headline\":\"How to install and use Screen to manage Terminal Sessions on Linux\",\"datePublished\":\"2023-08-05T11:34:45+00:00\",\"dateModified\":\"2023-08-05T11:34:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-install-and-use-screen-to-manage-terminal-sessions-linux-ubuntu-debian-centos\/\"},\"wordCount\":805,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\"},\"articleSection\":[\"Linux system administration\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webhi.com\/how-to\/how-to-install-and-use-screen-to-manage-terminal-sessions-linux-ubuntu-debian-centos\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-install-and-use-screen-to-manage-terminal-sessions-linux-ubuntu-debian-centos\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/how-to-install-and-use-screen-to-manage-terminal-sessions-linux-ubuntu-debian-centos\/\",\"name\":\"How to install and use Screen to manage Terminal Sessions on Linux - WebHi Tutorials &amp; Documentations\",\"isPartOf\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#website\"},\"datePublished\":\"2023-08-05T11:34:45+00:00\",\"dateModified\":\"2023-08-05T11:34:47+00:00\",\"description\":\"Learn how to install and configure Screen on Ubuntu Linux to manage persistent terminal sessions. Detach and reattach to running processes over SSH.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-install-and-use-screen-to-manage-terminal-sessions-linux-ubuntu-debian-centos\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webhi.com\/how-to\/how-to-install-and-use-screen-to-manage-terminal-sessions-linux-ubuntu-debian-centos\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-install-and-use-screen-to-manage-terminal-sessions-linux-ubuntu-debian-centos\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webhi.com\/how-to\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install and use Screen to manage Terminal Sessions on Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#website\",\"url\":\"https:\/\/www.webhi.com\/how-to\/\",\"name\":\"WebHi Tutorials &amp; Documentations\",\"description\":\"System administration and knowledge base\",\"publisher\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webhi.com\/how-to\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\",\"name\":\"WebHi Technology\",\"url\":\"https:\/\/www.webhi.com\/how-to\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png\",\"contentUrl\":\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png\",\"width\":288,\"height\":95,\"caption\":\"WebHi Technology\"},\"image\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webhi.technology\",\"https:\/\/twitter.com\/WebHiTechnology\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54\",\"name\":\"webhi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1784239260\",\"contentUrl\":\"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1784239260\",\"caption\":\"webhi\"},\"sameAs\":[\"https:\/\/www.webhi.com\/how-to\"],\"url\":\"https:\/\/www.webhi.com\/how-to\/author\/webhi\/\"}]}<\/script>\n","yoast_head_json":{"title":"How to install and use Screen to manage Terminal Sessions on Linux - WebHi Tutorials &amp; Documentations","description":"Learn how to install and configure Screen on Ubuntu Linux to manage persistent terminal sessions. Detach and reattach to running processes over SSH.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webhi.com\/how-to\/how-to-install-and-use-screen-to-manage-terminal-sessions-linux-ubuntu-debian-centos\/","og_locale":"en_US","og_type":"article","og_title":"How to install and use Screen to manage Terminal Sessions on Linux - WebHi Tutorials &amp; Documentations","og_description":"Learn how to install and configure Screen on Ubuntu Linux to manage persistent terminal sessions. Detach and reattach to running processes over SSH.","og_url":"https:\/\/www.webhi.com\/how-to\/how-to-install-and-use-screen-to-manage-terminal-sessions-linux-ubuntu-debian-centos\/","og_site_name":"WebHi Tutorials &amp; Documentations","article_publisher":"https:\/\/www.facebook.com\/webhi.technology","article_published_time":"2023-08-05T11:34:45+00:00","article_modified_time":"2023-08-05T11:34:47+00:00","og_image":[{"url":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/08\/screen_ubuntu_en.jpg"}],"author":"webhi","twitter_card":"summary_large_image","twitter_creator":"@WebHiTechnology","twitter_site":"@WebHiTechnology","twitter_misc":{"Written by":"webhi","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.webhi.com\/how-to\/how-to-install-and-use-screen-to-manage-terminal-sessions-linux-ubuntu-debian-centos\/#article","isPartOf":{"@id":"https:\/\/www.webhi.com\/how-to\/how-to-install-and-use-screen-to-manage-terminal-sessions-linux-ubuntu-debian-centos\/"},"author":{"name":"webhi","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54"},"headline":"How to install and use Screen to manage Terminal Sessions on Linux","datePublished":"2023-08-05T11:34:45+00:00","dateModified":"2023-08-05T11:34:47+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webhi.com\/how-to\/how-to-install-and-use-screen-to-manage-terminal-sessions-linux-ubuntu-debian-centos\/"},"wordCount":805,"commentCount":0,"publisher":{"@id":"https:\/\/www.webhi.com\/how-to\/#organization"},"articleSection":["Linux system administration"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webhi.com\/how-to\/how-to-install-and-use-screen-to-manage-terminal-sessions-linux-ubuntu-debian-centos\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webhi.com\/how-to\/how-to-install-and-use-screen-to-manage-terminal-sessions-linux-ubuntu-debian-centos\/","url":"https:\/\/www.webhi.com\/how-to\/how-to-install-and-use-screen-to-manage-terminal-sessions-linux-ubuntu-debian-centos\/","name":"How to install and use Screen to manage Terminal Sessions on Linux - WebHi Tutorials &amp; Documentations","isPartOf":{"@id":"https:\/\/www.webhi.com\/how-to\/#website"},"datePublished":"2023-08-05T11:34:45+00:00","dateModified":"2023-08-05T11:34:47+00:00","description":"Learn how to install and configure Screen on Ubuntu Linux to manage persistent terminal sessions. Detach and reattach to running processes over SSH.","breadcrumb":{"@id":"https:\/\/www.webhi.com\/how-to\/how-to-install-and-use-screen-to-manage-terminal-sessions-linux-ubuntu-debian-centos\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webhi.com\/how-to\/how-to-install-and-use-screen-to-manage-terminal-sessions-linux-ubuntu-debian-centos\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.webhi.com\/how-to\/how-to-install-and-use-screen-to-manage-terminal-sessions-linux-ubuntu-debian-centos\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webhi.com\/how-to\/"},{"@type":"ListItem","position":2,"name":"How to install and use Screen to manage Terminal Sessions on Linux"}]},{"@type":"WebSite","@id":"https:\/\/www.webhi.com\/how-to\/#website","url":"https:\/\/www.webhi.com\/how-to\/","name":"WebHi Tutorials &amp; Documentations","description":"System administration and knowledge base","publisher":{"@id":"https:\/\/www.webhi.com\/how-to\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webhi.com\/how-to\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webhi.com\/how-to\/#organization","name":"WebHi Technology","url":"https:\/\/www.webhi.com\/how-to\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/","url":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png","contentUrl":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png","width":288,"height":95,"caption":"WebHi Technology"},"image":{"@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webhi.technology","https:\/\/twitter.com\/WebHiTechnology"]},{"@type":"Person","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54","name":"webhi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/image\/","url":"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1784239260","contentUrl":"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1784239260","caption":"webhi"},"sameAs":["https:\/\/www.webhi.com\/how-to"],"url":"https:\/\/www.webhi.com\/how-to\/author\/webhi\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/6205"}],"collection":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/comments?post=6205"}],"version-history":[{"count":10,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/6205\/revisions"}],"predecessor-version":[{"id":6238,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/6205\/revisions\/6238"}],"wp:attachment":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/media?parent=6205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/categories?post=6205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/tags?post=6205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}