{"id":1688,"date":"2016-08-22T17:15:45","date_gmt":"2016-08-22T14:15:45","guid":{"rendered":"http:\/\/www.systemcodegeeks.com\/?p=1688"},"modified":"2017-12-04T15:54:06","modified_gmt":"2017-12-04T13:54:06","slug":"linux-screen-command-tutorial","status":"publish","type":"post","link":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/","title":{"rendered":"Linux Screen Command Tutorial"},"content":{"rendered":"<p>Screen is a window manager that allows to have several virtual terminals, several sessions and programs in text mode executing simultaneously in the same console. In this tutorial we will see how to use it.<\/p>\n<p>For this tutorial, Linux Mint 18 has been used.<\/p>\n<h2>1. Installation<\/h2>\n<p>If you don&#8217;t have installed Screen, you can install it easily with <code>apt-get<\/code>:<\/p>\n<pre class=\"brush:bash\">sudo apt-get update\r\nsudo apt-get install screen<\/pre>\n<p>[ulp id=&#8217;SG9vnnKgRCD7iZxf&#8217;]<\/p>\n<h2>2. Creating a screen<\/h2>\n<p>To create a screen, we just have to execute the <code>screen<\/code> command:<\/p>\n<pre class=\"brush:bash\">screen<\/pre>\n<p>We will see an informative screen about the software itself. Just hit return to exit.<\/p>\n<p>At this moment, a new screen will be generated inside the terminal window. You may have noticed it, since the buffer has been cleared.<\/p>\n<p>And that&#8217;s it!<\/p>\n<p>This has created a pipe file for this session in <code>\/var\/run\/screen\/S-&lt;username&gt;\/<\/code> directory. The username I&#8217;m working with is named <code>julen<\/code>, so, the directory is <code>\/var\/run\/screen\/S-julen\/<\/code>.<\/p>\n<p>In my case, the name for the session is <code>3360.pts-0.julen-VAIO<\/code>. <code>screen<\/code> generates the sessions with the following format:<\/p>\n<pre class=\"brush:bash\">&lt;pid&gt;.&lt;tty&gt;.&lt;host&gt;<\/pre>\n<p>You may be wondering how to exit the screen. You can obviously close the terminal, but that would leave the session alive. If you want to kill it, you can execute the following command inside the session you want to kill:<\/p>\n<pre class=\"brush:bash\">exit<\/pre>\n<p>You will see that you return to the &#8220;original&#8221; shell, and that <code>screen<\/code> has told that, effectively, you have exited its screen:<\/p>\n<blockquote><p>[screen is terminating]<\/p><\/blockquote>\n<p>If you check the directory where <code>screen<\/code> saves the sessions, you will notice that the previous session has disappeared.<\/p>\n<h3>2.1. Creating windows inside screens<\/h3>\n<p>We have seen that executing <code>screen<\/code> in the host computer, creates a new session, which is saved in <code>\/var\/run\/screen\/S-&lt;username&gt;\/<\/code> directory. If we would execute <code>screen<\/code> <em>n<\/em> times in the host, we would have <em>n<\/em> sessions.<\/p>\n<p>Inside each session, we can have other several screens, named windows. The windows are created, again, executing the <code>screen<\/code> command. So, the following:<\/p>\n<pre class=\"brush:bash\">screen\r\n# We are know inside a screen session\r\nscreen<\/pre>\n<p>Would only create a session in <code>\/var\/run\/screen\/S-&lt;username&gt;\/<\/code>:<\/p>\n<pre class=\"brush:bash\">11714.pts-0.julen-VAIO<\/pre>\n<p>This is because, as we have said, executing <code>screen<\/code> inside a screen session will create a window inside that screen, not another session.<\/p>\n<p>In the next sections we will see the commands available for these screens.<\/p>\n<h2>3. Screen commands options<\/h2>\n<p><code>screen<\/code> command has many inline options. The following table shows and explains them.<\/p>\n<table>\n<thead>\n<tr>\n<th><strong>Action<\/strong><\/th>\n<th><strong>Command<\/strong><\/th>\n<th><strong>Description<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Create screen<\/td>\n<td><code>screen<\/code><\/td>\n<td>Creates a session, as we have already seen.<\/td>\n<\/tr>\n<tr>\n<td>Create screen with name<\/td>\n<td><code>screen -S &lt;name&gt;<\/code><\/td>\n<td>Creates a session with a specific name. This is, actually, the recommended way for creating sessions, for having identified each session with a proper name.<\/td>\n<\/tr>\n<tr>\n<td>Create detached screen<\/td>\n<td><code>screen -S &lt;name&gt; -dmS<\/code><\/td>\n<td>This is for creating a screen that will be detached from its creation, for which <code>-dmS<\/code> option is used. When using this option, the <code>-S<\/code> option is mandatory.<\/td>\n<\/tr>\n<tr>\n<td>Show screens<\/td>\n<td><code>screen -ls|-list<\/code><\/td>\n<td>Shows the screen sessions. This can also be done looking at the directory where there are stored, as we have seen before. But using this option (actually, one of them, <code>-ls<\/code> or <code>-list<\/code>) can be considered better since more information about the session is shown, apart from being easier to type.<\/td>\n<\/tr>\n<tr>\n<td>Reattach screen<\/td>\n<td>s<code>creen -r\u00a0 &lt;name|id&gt;<\/code><\/td>\n<td>Reattaches a detached session. If there&#8217;s only one session detached, it&#8217;s not necessary to specify the name\/id; <code>screen<\/code> is smart enough to deduce that will be that. If there&#8217;s more than one session detached, you will need to specify the session, with the name (if you used the <code>-S<\/code> option to create the session); or the id (<code>tty.host<\/code> format).<\/td>\n<\/tr>\n<tr>\n<td>Try to reattach screen, create new one if impossible<\/td>\n<td><code>screen -R &lt;name|id&gt;<\/code><\/td>\n<td>Tries to reattach a detached screen. If the screen couldn&#8217;t be reattached, a new session will be created. If no <code>name<\/code> or <code>id<\/code> is specified, a new session will be created.<\/td>\n<\/tr>\n<tr>\n<td>Specify a shell for the screen<\/td>\n<td><code>screen -s &lt;path\/to\/shell&gt;<\/code><\/td>\n<td>Creates a session with the specified shell. By default, the sessions are created with <code>$BASH<\/code> value, which will probably be <code>\/bin\/bash<\/code>.<\/td>\n<\/tr>\n<tr>\n<td>Create a window with name<\/td>\n<td><code>screen -t &lt;window-name&gt;<\/code><\/td>\n<td>By default, the created windows inside a session are named <code>bash<\/code>. We can specify a name that can help us to have identified properly each window with this option.<\/td>\n<\/tr>\n<tr>\n<td>Delete screen<\/td>\n<td><code>screen -X -S &lt;name|id&gt; kill<\/code><\/td>\n<td>Kills the screen session. This would be equivalent to removing the pipe file from <code>\/var\/run\/screen\/S-&lt;username\/<\/code>.<\/td>\n<\/tr>\n<tr>\n<td>Delete all screens<\/td>\n<td><code>rm \/var\/run\/screen\/S-${USER}\/*<\/code><\/td>\n<td>Not actually a <code>screen<\/code> command, but serves for this. As each user saves its sessions in different directories, we have to use the <code>$USER<\/code> variable.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>4. Key bindings<\/h2>\n<p>When we are inside a screen and its windows, we have available some special key combinations to perform some actions, e.g., navigating through different windows.<\/p>\n<p>These key bindings consist on pressing <em>Ctrl + a<\/em>, and then pressing the key(s) in question. Not at the same time: first, <em>Ctrl + a<\/em>; then, release them; and finally, press the key in question.<\/p>\n<p>The following table shows the most used key bindings.<\/p>\n<table>\n<thead>\n<tr>\n<th><strong>Action<\/strong><\/th>\n<th><strong>Command<\/strong><\/th>\n<th><strong>Description<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Detach screen<\/td>\n<td>Ctrl + a <strong>d<\/strong><\/td>\n<td>Detaches the screen.<\/td>\n<\/tr>\n<tr>\n<td>Clear window<\/td>\n<td>Ctrl + a <strong>C<\/strong><\/td>\n<td>Clears the window, just like with <code>clear<\/code> command.<\/td>\n<\/tr>\n<tr>\n<td>Create window<\/td>\n<td>Ctrl + a <strong>c<\/strong><\/td>\n<td>Creates a new window in the screen.<\/td>\n<\/tr>\n<tr>\n<td>Show number and title of current window<\/td>\n<td>Ctrl + a <strong>N<\/strong><\/td>\n<td>Shows a message with the window number and title like: <em>This is window <strong>n<\/strong> (<strong>title<\/strong>)<\/em>.<\/td>\n<\/tr>\n<tr>\n<td>Lock window<\/td>\n<td>Ctrl + a <strong>Ctrl + x<\/strong><\/td>\n<td>Locks the window. Just like locking the host. The password to unlock the window is, of course, the password of the user where the session is running in.<\/td>\n<\/tr>\n<tr>\n<td>List windows<\/td>\n<td>Ctrl + a <strong>w<\/strong><\/td>\n<td>Shows a list of the windows of the current screen, with the number and the name of each one.<\/td>\n<\/tr>\n<tr>\n<td>Rename current window<\/td>\n<td>Ctrl + a <strong>A<\/strong><\/td>\n<td>Shows a menu for introducing a new name for the current window.<\/td>\n<\/tr>\n<tr>\n<td>Go to window n<\/td>\n<td>Ctrl + a <strong><em>n <\/em><\/strong>(0&#8230;9)<\/td>\n<td>Navigates to the window.<\/td>\n<\/tr>\n<tr>\n<td>Go to the next window<\/td>\n<td>Ctrl + a <strong>n<\/strong><\/td>\n<td>Navigates to the next window.<\/td>\n<\/tr>\n<tr>\n<td>Go to the previous window<\/td>\n<td>Ctrl + a <strong>backspace<\/strong><\/td>\n<td>Navigates to the previous window (the opposite of the previous command).<\/td>\n<\/tr>\n<tr>\n<td>List windows and select where to go<\/td>\n<td>Ctrl + a <strong>&#8220;<\/strong><\/td>\n<td>Shows a menu of the current windows, allowing to select to which window navigate to.<\/td>\n<\/tr>\n<tr>\n<td>Select the window to go to<\/td>\n<td>Ctrl + a <strong>&#8216;<\/strong><\/td>\n<td>Prompts a menu for entering the window number to navigate to.<\/td>\n<\/tr>\n<tr>\n<td>Kill the current window<\/td>\n<td>Ctrl + a <strong>k<\/strong><\/td>\n<td>Kills the current window, asking for confirmation.<\/td>\n<\/tr>\n<tr>\n<td>Kill all the windows, and terminate the session<\/td>\n<td>Ctrl + a <strong>\\<\/strong><\/td>\n<td>Kills all the window and the screen session, asking for confirmation.<\/td>\n<\/tr>\n<tr>\n<td>Show help<\/td>\n<td>Ctrl + a <strong>?<\/strong><\/td>\n<td>Shows the key bindings.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>5. Customizing Screen<\/h2>\n<p><code>screen<\/code> allows us to configure it as we want. It looks for the configuration in a file named <code>.screenrc<\/code> in the user&#8217;s home directory; or system wide, in <code>\/etc\/screenrc<\/code>.<\/p>\n<h3>5.1. Disabling startup message<\/h3>\n<p>You may already be tired of the startup message when you create a screen, that one about the version, copyright, etc. This can be disabled with the following line in the configuration file:<\/p>\n<pre class=\"brush:bash\">startup_message off<\/pre>\n<h3>5.2. Setting default windows for each session<\/h3>\n<p>One of the most interesting possibilities is defining a set of default windows for every <code>screen<\/code> session. For that, we just have to write the commands we would execute, in the configuration file.<\/p>\n<p>For example, let&#8217;s say that for every <code>screen<\/code> session we want, apart from a shell, a Python and PHP console. We could write the following in the configuration file:<\/p>\n<pre class=\"brush:bash\">screen -t Shell\u00a0 \/bin\/bash\r\nscreen -t Python \/usr\/bin\/python3ve\r\nscreen -t PHP\u00a0\u00a0\u00a0 \/usr\/bin\/php -a # Interactive mode.\r\n\r\nselect 0 # After creating the windows, go to the first one.<\/pre>\n<p>Now, for the configuration shown above, you would have, for each <code>screen<\/code> session, those three windows.<\/p>\n<h3>5.3. Key bindings<\/h3>\n<p>The remaining customization that is worth mentioning is the configuration of key bindings, for having a better experience.<\/p>\n<p>A usual practice is to use the function keys (F1 &#8211; F12). For example, we could use them for accessing windows:<\/p>\n<pre class=\"brush:bash\">bindkey \"^[[[A\"\u00a0 select 1\u00a0 # F1 -&gt; window 1\r\nbindkey \"^[OQ\"\u00a0\u00a0 select 2\u00a0 # F2 -&gt; window 2\r\nbindkey \"^[OR\"\u00a0\u00a0 select 3\u00a0 # F3 -&gt; window 3\r\nbindkey \"^[OS\"\u00a0\u00a0 select 4\u00a0 # F4 -&gt; window 4\r\nbindkey \"^[[15~\" select 5\u00a0 # F5 -&gt; window 5\r\nbindkey \"^[[17~\" select 6\u00a0 # F6 -&gt; window 6\r\nbindkey \"^[[18~\" select 7\u00a0 # F7 -&gt; window 7\r\nbindkey \"^[[19~\" select 8\u00a0 # F8 -&gt; window 8\r\nbindkey \"^[[20~\" select 9\u00a0 # F9 -&gt; window 9\r\nbindkey \"^[[21~\" select 10 # F10 -&gt; window 10\r\nbindkey \"^[[23~\" prev    \u00a0 # F11 -&gt; previous window\r\nbindkey \"^[[24~\" next\u00a0\u00a0\u00a0\u00a0\u00a0 # F12 -&gt; next window<\/pre>\n<p><strong>Note<\/strong>: if you want to know which key code corresponds to each keystroke, you can use <code>showkey<\/code>:<\/p>\n<pre class=\"brush:bash\">showkey -a<\/pre>\n<p>And then press a key to know its code.<\/p>\n<h2>6. Summary<\/h2>\n<p>In this tutorial we have seen how to use the Screen utility, for managing several virtual windows in the same terminal. We have seen the command&#8217;s inline options, and also the special key combinations for when we are inside the virtual windows. To end up with the tutorial, we have shown how we can customize Screen with the configuration file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Screen is a window manager that allows to have several virtual terminals, several sessions and programs in text mode executing simultaneously in the same console. In this tutorial we will see how to use it. For this tutorial, Linux Mint 18 has been used. 1. Installation If you don&#8217;t have installed Screen, you can install &hellip;<\/p>\n","protected":false},"author":25,"featured_media":185,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-1688","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bash"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux Screen Command Tutorial - System Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"Screen is a window manager that allows to have several virtual terminals, several sessions and programs in text mode executing simultaneously in the same\" \/>\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.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux Screen Command Tutorial - System Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"Screen is a window manager that allows to have several virtual terminals, several sessions and programs in text mode executing simultaneously in the same\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/\" \/>\n<meta property=\"og:site_name\" content=\"System Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/systemcodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2016-08-22T14:15:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-04T13:54:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Toni\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@systemcodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@systemcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Toni\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/\"},\"author\":{\"name\":\"Toni\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/69a7de154310f99cedabb63c580291b2\"},\"headline\":\"Linux Screen Command Tutorial\",\"datePublished\":\"2016-08-22T14:15:45+00:00\",\"dateModified\":\"2017-12-04T13:54:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/\"},\"wordCount\":1294,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg\",\"articleSection\":[\"BASH\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/\",\"url\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/\",\"name\":\"Linux Screen Command Tutorial - System Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg\",\"datePublished\":\"2016-08-22T14:15:45+00:00\",\"dateModified\":\"2017-12-04T13:54:06+00:00\",\"description\":\"Screen is a window manager that allows to have several virtual terminals, several sessions and programs in text mode executing simultaneously in the same\",\"breadcrumb\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/#primaryimage\",\"url\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg\",\"contentUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.systemcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Shell Scripting\",\"item\":\"https:\/\/www.systemcodegeeks.com\/category\/shell-scripting\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"BASH\",\"item\":\"https:\/\/www.systemcodegeeks.com\/category\/shell-scripting\/bash\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Linux Screen Command Tutorial\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#website\",\"url\":\"https:\/\/www.systemcodegeeks.com\/\",\"name\":\"System Code Geeks\",\"description\":\"Operating System Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.systemcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.systemcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/systemcodegeeks\",\"https:\/\/x.com\/systemcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/69a7de154310f99cedabb63c580291b2\",\"name\":\"Toni\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/21c1661474c78b4757355b8beef9ab1d14f490ee3a3e67392f4e618d36643d4c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/21c1661474c78b4757355b8beef9ab1d14f490ee3a3e67392f4e618d36643d4c?s=96&d=mm&r=g\",\"caption\":\"Toni\"},\"url\":\"https:\/\/www.systemcodegeeks.com\/author\/julen-pardo\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux Screen Command Tutorial - System Code Geeks - 2026","description":"Screen is a window manager that allows to have several virtual terminals, several sessions and programs in text mode executing simultaneously in the same","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.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/","og_locale":"en_US","og_type":"article","og_title":"Linux Screen Command Tutorial - System Code Geeks - 2026","og_description":"Screen is a window manager that allows to have several virtual terminals, several sessions and programs in text mode executing simultaneously in the same","og_url":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/","og_site_name":"System Code Geeks","article_publisher":"https:\/\/www.facebook.com\/systemcodegeeks","article_published_time":"2016-08-22T14:15:45+00:00","article_modified_time":"2017-12-04T13:54:06+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg","type":"image\/jpeg"}],"author":"Toni","twitter_card":"summary_large_image","twitter_creator":"@systemcodegeeks","twitter_site":"@systemcodegeeks","twitter_misc":{"Written by":"Toni","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/#article","isPartOf":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/"},"author":{"name":"Toni","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/69a7de154310f99cedabb63c580291b2"},"headline":"Linux Screen Command Tutorial","datePublished":"2016-08-22T14:15:45+00:00","dateModified":"2017-12-04T13:54:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/"},"wordCount":1294,"commentCount":0,"publisher":{"@id":"https:\/\/www.systemcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg","articleSection":["BASH"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/","url":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/","name":"Linux Screen Command Tutorial - System Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.systemcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/#primaryimage"},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg","datePublished":"2016-08-22T14:15:45+00:00","dateModified":"2017-12-04T13:54:06+00:00","description":"Screen is a window manager that allows to have several virtual terminals, several sessions and programs in text mode executing simultaneously in the same","breadcrumb":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/#primaryimage","url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg","contentUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-screen-command-tutorial\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.systemcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Shell Scripting","item":"https:\/\/www.systemcodegeeks.com\/category\/shell-scripting\/"},{"@type":"ListItem","position":3,"name":"BASH","item":"https:\/\/www.systemcodegeeks.com\/category\/shell-scripting\/bash\/"},{"@type":"ListItem","position":4,"name":"Linux Screen Command Tutorial"}]},{"@type":"WebSite","@id":"https:\/\/www.systemcodegeeks.com\/#website","url":"https:\/\/www.systemcodegeeks.com\/","name":"System Code Geeks","description":"Operating System Developers Resource Center","publisher":{"@id":"https:\/\/www.systemcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.systemcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.systemcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.systemcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/systemcodegeeks","https:\/\/x.com\/systemcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/69a7de154310f99cedabb63c580291b2","name":"Toni","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/21c1661474c78b4757355b8beef9ab1d14f490ee3a3e67392f4e618d36643d4c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/21c1661474c78b4757355b8beef9ab1d14f490ee3a3e67392f4e618d36643d4c?s=96&d=mm&r=g","caption":"Toni"},"url":"https:\/\/www.systemcodegeeks.com\/author\/julen-pardo\/"}]}},"_links":{"self":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts\/1688","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/comments?post=1688"}],"version-history":[{"count":0,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts\/1688\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/media\/185"}],"wp:attachment":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/media?parent=1688"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/categories?post=1688"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/tags?post=1688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}