{"id":47148,"date":"2023-11-22T12:30:00","date_gmt":"2023-11-22T18:30:00","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=47148"},"modified":"2025-07-02T05:40:46","modified_gmt":"2025-07-02T10:40:46","slug":"screen-commands-in-linux-with-examples","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/","title":{"rendered":"Screen Commands in Linux with Examples"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/screen-commands-in-linux-with-examples.webp\" alt=\"screen commands in Linux with examples\" class=\"wp-image-47167\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/screen-commands-in-linux-with-examples.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/screen-commands-in-linux-with-examples-300x169.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/screen-commands-in-linux-with-examples-150x84.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/screen-commands-in-linux-with-examples-768x432.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>GNU Screen, or screen, is a tool to multiplex a terminal between several processes. With screen, you are able to run multiple session instances from a single terminal session. Let&#8217;s go over some useful screen commands in Linux and explain how this versatile tool works.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Screen also allows you to close and exit from the terminal session and reconnect later and resume your work. You can continue to work from where you left it, even after logging out from the terminal.<\/p>\n\n\n\n<p>In this article, we will show you some useful examples of screen commands in Linux. By the end of this article, you will understand and be able to work with multiple screen sessions using a single terminal session.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69f272c9306c0\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69f272c9306c0\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/#Prerequisites\" >Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/#What-is-the-%E2%80%9Cscreen%E2%80%9D-command\" >What is the &#8220;screen&#8221; command?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/#How-to-Install-Screen\" >How to Install Screen<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/#Screen-Syntax\" >Screen Syntax<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/#Command-Options\" >Command Options<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/#Shortcut-key\" >Shortcut key<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/#Example\" >Example<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-prerequisites\"><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A Linux VPS with any common Linux distribution<\/li>\n\n\n\n<li>root SSH access or a regular user with sudo privileges<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-is-the-screen-command\"><span class=\"ez-toc-section\" id=\"What-is-the-%E2%80%9Cscreen%E2%80%9D-command\"><\/span>What is the &#8220;screen&#8221; command?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In a Linux machine, the screen command enables us to start and use more than one terminal session from a single SSH session. You can detach the process from the session and resume it later by starting the process with the screen command.<\/p>\n\n\n\n<p>GNU screen, or simply screen, is a tool that multiplexes a terminal or shell. With this tool, we can also start any screen session and then open several windows in that session. Processes you execute will continue to run in a screen session even after you detach it. This also involves disconnecting from the terminal session.<\/p>\n\n\n\n<p>When you invoke the &#8220;screen&#8221; command, it creates a single window with a shell (or your specified command), enabling you to use the program without interruption.<\/p>\n\n\n\n<p>You can create additional full-screen windows at any time, each running its own program, including shells. You can close existing windows, view a list of windows, enable or disable output logging, copy and paste text between windows, access scrollback history, and switch between windows as desired. This is one flexible program.<\/p>\n\n\n\n<p>Each window operates independently of the others, with programs continuing to run even when their respective windows are not visible or when the entire screen session is detached from the user&#8217;s terminal. Upon a program&#8217;s termination, screen (by default) terminates the window in which it was contained. If this window is in the foreground, the display will switch to the previous window; if no windows remain, screen will exit.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-install-screen\"><span class=\"ez-toc-section\" id=\"How-to-Install-Screen\"><\/span>How to Install Screen<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Screen is usually installed by default on Linux machines. But, if it has not been installed already, we can run these commands when logged in to the server through SSH.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt install screen<\/pre>\n\n\n\n<p>The command above can be executed on Debian, Ubuntu, and other Debian-based distros.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">yum install screen<\/pre>\n\n\n\n<p>The command above can be executed on CentOS, AlmaLinux, Rocky Linux, etc.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-screen-syntax\"><span class=\"ez-toc-section\" id=\"Screen-Syntax\"><\/span>Screen Syntax<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>This is the syntax used for the screen command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">screen [-opts] [cmd [args]]<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-command-options\"><span class=\"ez-toc-section\" id=\"Command-Options\"><\/span>Command Options<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Screen has the following command-line options, together with their description:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>-a This command forces all capabilities into the termcap of each window.<br>-A -&#91;r|R] It adjusts all windows to the changed width and height of the display.<br>-c file Instead of '.screenrc,' it reads the configuration file.<br>-d (-r) Removes the elsewhere running screen (and reattach here).<br>-dmS name Starts as daemon, i.e, screen session in disconnected mode.<br>-D (-r) It disconnects and logs out the remote (and reattaches here).<br>-D -RR It performs the required action to get a screen session.<br>-e xy This changes the command line characters.<br>-f It is used to turn the flow control on, -fn=off, -fa=auto.<br>-h lines It is used to set the size of the scrollback history buffer.<br>-i It interrupts the output sooner when flow control is enabled.<br>-l Turns the login mode on,(update \/var\/run\/utmp), -ln=off.<br>-ls &#91;match] It is used to display all the attached screens.<br>-L It turns the output logging on.<br>-m It ignores the $STY variable and creates a new screen session.<br>-O It selects the optimal output instead of exact vt100 emulation.<br>-p window It is used to preselect the named window if it exists.<br>-q It quiets the startup. If it fails, it exits with a non-zero code return code.<br>-Q It helps in sending the reply to the stdout of a querying process.<br>-r &#91;session] It re-attaches to the detached screen process.<br>-R If possible, it re-attaches; otherwise, it creates a new session.<br>-S sockname It names the session as .sockname rather than \u2026<br>-t title It is used to set the title(name of the window).<br>-T term It uses the term as $TERM for windows in place of \u201cscreen\u201d.<br>-U It instructs the screen to use UTF-8 encoding.<br>-vIt prints the version of the screen. It will print \u201cScreen version 4.06.02 (GNU) 23-Oct-17\u201d.<br>-x It attaches to a non-detached screen.<br>-X It runs as a screen command in the given session.<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-shortcut-key\"><span class=\"ez-toc-section\" id=\"Shortcut-key\"><\/span>Shortcut key<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>While in a screen session, you can use the following shortcut keys on your keyboard.<\/p>\n\n\n\n<p>Ctrl-a c Create new window (shell)<br>Ctrl-a k Kill the current window<br>Ctrl-a w List all windows (the current window is marked with &#8220;*&#8221;)<br>Ctrl-a 0-9 Go to a window numbered 0-9<br>Ctrl-a n Go to the next window<br>Ctrl-a Ctrl-a Toggle between the current and previous window<br>Ctrl-a [ Start copy mode<br>Ctrl-a ] Paste the copied text<br>Ctrl-a ? Help (display a list of commands)<br>Ctrl-a Ctrl-\\ Quit screen<br>Ctrl-a D (Shift-d) Power detach and logout<br>Ctrl-a d Detach but keep shell window open<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-example\"><span class=\"ez-toc-section\" id=\"Example\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this section, we will try to understand the screen command deeper.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-check-screen-version\">Check Screen Version<\/h3>\n\n\n\n<p>To check screen version, simply invoke this command<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">screen --version<\/pre>\n\n\n\n<p>The command will show you an output like this:<\/p>\n\n\n\n<p>Screen version 4.09.00 (GNU) 30-Jan-22<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-run-a-new-screen-session\">Run a New Screen Session<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">screen<\/pre>\n\n\n\n<p>You will see this message as shown in the picture below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1434\" height=\"777\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/screen-message.jpg\" alt=\"\" class=\"wp-image-47156\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/screen-message.jpg 1434w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/screen-message-300x163.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/screen-message-1024x555.jpg 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/screen-message-150x81.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/screen-message-768x416.jpg 768w\" sizes=\"(max-width: 1434px) 100vw, 1434px\" \/><\/figure>\n\n\n\n<p>Simply hit ENTER or SPACE on your keyboard. Then you should be in a screen session now. You can type something in screen, for example, type &#8220;This is a screen session&#8221;.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/screen-session.jpg\"><img decoding=\"async\" width=\"486\" height=\"111\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/screen-session.jpg\" alt=\"screen session\" class=\"wp-image-47150\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/screen-session.jpg 486w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/screen-session-300x69.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/screen-session-150x34.jpg 150w\" sizes=\"(max-width: 486px) 100vw, 486px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>Then, hit the shortcut key Ctrl-A, then type the letter <strong>d<\/strong> to detach the screen. Once detached, you will get a message in your SSH session like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[detached from 71107.pts-0.rh]<\/pre>\n\n\n\n<p>To attach to the detached screen, you can run this command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">screen -x<\/pre>\n\n\n\n<p>Once attached, you should be able to see the screen session you left and the message &#8220;This is a screen session&#8221;. With this, you&#8217;re able to run commands and check on them later, even if you get disconnected.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-list-screen-session\">List screen session<\/h3>\n\n\n\n<p>To list screen sessions, you can run the following command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">screen -ls<\/pre>\n\n\n\n<p>The command will return an output similar to this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">There are screens on:<br>71199.rosehosting-screen (09\/19\/2023 05:49:18 AM) (Attached)<br>71107.pts-0.rh (09\/19\/2023 05:41:09 AM) (Detached)<br>2 Sockets in \/run\/screen\/S-root.<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-resume-screen-session\">Resume screen session<\/h3>\n\n\n\n<p>After listing the screen sessions, you can resume to one of the sessions by running this command syntax:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">screen -r [PID] or {NAME}<\/pre>\n\n\n\n<p>So, to resume the screen with PID 71199 or name rosehosting-screen, we can run one of these two commands.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">screen -r 71199<br>screen -r rosehosting-screen<\/pre>\n\n\n\n<p>The command above will bring you to the session.<\/p>\n\n\n\n<p>That&#8217;s it! You have learned screen commands in Linux with examples. Hopefully, you have a better understanding of the screen command and its usage now. If you want to learn it deeper, you can run this command and read the documentation.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">man screen<\/pre>\n\n\n\n<p>If you are one of our web hosting customers and use our managed Linux Hosting, you don\u2019t have to follow this article and try to learn screen commands in Linux with examples yourself; our Linux admins will set up and configure the screen command for you and execute your commands in a screen session. Our expert administrators are available 24\u00d77 and will take care of your request immediately, and all you need to do is to submit a ticket.<\/p>\n\n\n\n<p>PS. If you liked this post, please share it with your peers on social media, or if you have other uses for the screen command let us know in a comment below. Thank you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GNU Screen, or screen, is a tool to multiplex a terminal between several processes. With screen, you are able to &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Screen Commands in Linux with Examples\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/#more-47148\" aria-label=\"Read more about Screen Commands in Linux with Examples\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":47167,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2071,21],"tags":[103,27],"class_list":["post-47148","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-tips-and-tricks","tag-commands","tag-linux","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.5 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Screen Commands in Linux with Examples | RoseHosting<\/title>\n<meta name=\"description\" content=\"Want to run interactive tasks in the background or share a terminal session with someone? Here are some useful screen commands in Linux.\" \/>\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.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Screen Commands in Linux with Examples\" \/>\n<meta property=\"og:description\" content=\"Screen Commands in Linux with Examples | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-22T18:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-02T10:40:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/screen-commands-in-linux-with-examples.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\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\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/screen-commands-in-linux-with-examples\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/screen-commands-in-linux-with-examples\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"Screen Commands in Linux with Examples\",\"datePublished\":\"2023-11-22T18:30:00+00:00\",\"dateModified\":\"2025-07-02T10:40:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/screen-commands-in-linux-with-examples\\\/\"},\"wordCount\":958,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/screen-commands-in-linux-with-examples\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/screen-commands-in-linux-with-examples.webp\",\"keywords\":[\"Commands\",\"Linux\"],\"articleSection\":[\"Linux\",\"Tips and Tricks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/screen-commands-in-linux-with-examples\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/screen-commands-in-linux-with-examples\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/screen-commands-in-linux-with-examples\\\/\",\"name\":\"Screen Commands in Linux with Examples | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/screen-commands-in-linux-with-examples\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/screen-commands-in-linux-with-examples\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/screen-commands-in-linux-with-examples.webp\",\"datePublished\":\"2023-11-22T18:30:00+00:00\",\"dateModified\":\"2025-07-02T10:40:46+00:00\",\"description\":\"Want to run interactive tasks in the background or share a terminal session with someone? Here are some useful screen commands in Linux.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/screen-commands-in-linux-with-examples\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/screen-commands-in-linux-with-examples\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/screen-commands-in-linux-with-examples\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/screen-commands-in-linux-with-examples.webp\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/screen-commands-in-linux-with-examples.webp\",\"width\":1024,\"height\":576,\"caption\":\"screen commands in Linux with examples\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/screen-commands-in-linux-with-examples\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Screen Commands in Linux with Examples\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Screen Commands in Linux with Examples | RoseHosting","description":"Want to run interactive tasks in the background or share a terminal session with someone? Here are some useful screen commands in Linux.","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.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/","og_locale":"en_US","og_type":"article","og_title":"Screen Commands in Linux with Examples","og_description":"Screen Commands in Linux with Examples | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2023-11-22T18:30:00+00:00","article_modified_time":"2025-07-02T10:40:46+00:00","og_image":[{"width":1024,"height":576,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/screen-commands-in-linux-with-examples.webp","type":"image\/webp"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"Screen Commands in Linux with Examples","datePublished":"2023-11-22T18:30:00+00:00","dateModified":"2025-07-02T10:40:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/"},"wordCount":958,"commentCount":1,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/screen-commands-in-linux-with-examples.webp","keywords":["Commands","Linux"],"articleSection":["Linux","Tips and Tricks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/","url":"https:\/\/www.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/","name":"Screen Commands in Linux with Examples | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/screen-commands-in-linux-with-examples.webp","datePublished":"2023-11-22T18:30:00+00:00","dateModified":"2025-07-02T10:40:46+00:00","description":"Want to run interactive tasks in the background or share a terminal session with someone? Here are some useful screen commands in Linux.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/screen-commands-in-linux-with-examples.webp","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/10\/screen-commands-in-linux-with-examples.webp","width":1024,"height":576,"caption":"screen commands in Linux with examples"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/screen-commands-in-linux-with-examples\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Screen Commands in Linux with Examples"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/47148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=47148"}],"version-history":[{"count":8,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/47148\/revisions"}],"predecessor-version":[{"id":50685,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/47148\/revisions\/50685"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/47167"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=47148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=47148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=47148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}