đŸ•ˇī¸ Crawler Inspector

URL Lookup

Direct Parameter Lookup

Raw Queries and Responses

1. Shard Calculation

Query:
Response:
Calculated Shard: 103 (from laksa080)

2. Crawled Status Check

Query:
Response:

3. Robots.txt Check

Query:
Response:

4. Spam/Ban Check

Query:
Response:

5. Seen Status Check

â„šī¸ Skipped - page is already crawled

📄
INDEXABLE
✅
CRAWLED
6 days ago
🤖
ROBOTS ALLOWED

Page Info Filters

FilterStatusConditionDetails
HTTP statusPASSdownload_http_code = 200HTTP 200
Age cutoffPASSdownload_stamp > now() - 6 MONTH0.2 months ago
History dropPASSisNull(history_drop_reason)No drop reason
Spam/banPASSfh_dont_index != 1 AND ml_spam_score = 0ml_spam_score=0
CanonicalPASSmeta_canonical IS NULL OR = '' OR = src_unparsedNot set

Page Details

PropertyValue
URLhttps://www.geeksforgeeks.org/linux-unix/how-to-kill-a-detached-screen-session-in-linux/
Last Crawled2026-04-14 13:10:43 (6 days ago)
First Indexed2025-06-20 11:42:43 (10 months ago)
HTTP Status Code200
Meta TitleHow to Kill a Detached screen Session in Linux - GeeksforGeeks
Meta DescriptionYour All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners across domains-spanning computer science and programming, school education, upskilling, commerce, software tools, competitive exams, and more., Your All-in-One Learning Portal. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
Meta Canonicalnull
Boilerpipe Textnull
Markdown
[![geeksforgeeks](https://media.geeksforgeeks.org/gfg-gg-logo.svg)](https://www.geeksforgeeks.org/) - Courses - Tutorials - Interview Prep - [Linux-Unix](https://www.geeksforgeeks.org/linux-unix/linux-tutorial/) - [Interview Questions](https://www.geeksforgeeks.org/linux-unix/linux-interview-questions/) - [Shell Scripting](https://www.geeksforgeeks.org/linux-unix/introduction-linux-shell-shell-scripting/) - [Kali](https://www.geeksforgeeks.org/linux-unix/introduction-to-kali-linux/) - [Ubuntu](https://www.geeksforgeeks.org/linux-unix/how-to-install-ubuntu-on-virtualbox/) - [Red Hat](https://www.geeksforgeeks.org/tag/red-hat/) - [CentOS](https://www.geeksforgeeks.org/linux-unix/getting-started-with-centos/) - [Docker](https://www.geeksforgeeks.org/devops/introduction-to-docker/) - [Kubernetes](https://www.geeksforgeeks.org/devops/introduction-to-kubernetes-k8s/) - [Python](https://www.geeksforgeeks.org/python/python-programming-language-tutorial/) - [R](https://www.geeksforgeeks.org/r-language/r-tutorial/) - [Java](https://www.geeksforgeeks.org/java/java/) # How to Kill a Detached screen Session in Linux Last Updated : 22 Dec, 2022 The screen session is like virtual windows, And in Linux it works like a multiplexer terminal where we can create more than one window and work on that. we can create multiple windows inside one session. We called it virtual because the process will continue to run when their window will not be visible even if you have disconnected. Now, if we are working on more than one session in a virtual way then we also may need to kill them. So let's see how we can kill the screen sessions. While using the GNU screen or screen session, We can exit from the detached session that needs cleanup. In this article, we will talk about many options for killing a detached screen session. Before going to discuss how to kill the existing session, let's go for listing the existing sessions. ### Listing Sessions First, let's create a couple of screen sessions by using the below command. ``` $ screen -dmS session_1 $ screen -dmS session_2 ``` This will create two sessions named session\_1 and session\_2. Notice that we have not attached this session because we have used **\-d**. Now let's see the sessions that we have created. For listing the created sessions, run the below command. **Command:** ``` $ screen -list ``` **Output:** Our two sessions show up: ![](https://media.geeksforgeeks.org/wp-content/uploads/20221124192329/Screenshotfrom20221124192147.png) Next, let's see how to kill these sessions. There are two methods to kill the session: - **Method 1:** Attach and kill the screen session. - **Method 2:** Kill the screen session without attaching. Let's discuss both methods ### Method 1: Attach and kill the screen session. First attach session\_1 that we have created above, For that run the below command. ``` $ screen -r session_1 ``` Now our command prompt is now inside our session. So we can just type:- ``` $ exit ``` The session will start terminating, and we can see \[screen is terminating\] in the output. Now we have only one session left. That is session\_2 because we have killed the session\_1. **Output:** ![](https://media.geeksforgeeks.org/wp-content/uploads/20221124193137/Screenshotfrom20221124192956.png) > **Note:** If the screen session had more than one window, we have to type **exit** at every window before the screen session would end. ## Method 2: Kill the screen session without attaching. In this method, we will not attach the session. Let's look up the way to kill the screen session without attaching them. First, create a couple of screen sessions to kill. ``` $ screen -dmS session_3 $ screen -dmS session_4 ``` Now, our two screen sessions have been created. Let's list the session by using the below command. ``` $ screen -list ``` **Output:** ![](https://media.geeksforgeeks.org/wp-content/uploads/20221124193519/Screenshotfrom20221124193226.png) Now, we will use the screen command argument **\-X** to send the command in a running screen version.The **\-S** will allow us to specify the session that we want to kill. And for killing that particular session, we will add the **quit** command. ``` $ screen -S session_3 -X quit ``` Now, the screen **session\_3** has been killed. Let's list our current sessions by using the below command. ``` $ screen -list ``` **Output:** ![](https://media.geeksforgeeks.org/wp-content/uploads/20221124194020/Screenshotfrom20221124193836.png) We can see that we have only session\_4 because we have killed the session\_3. ### Conclusion: In this article, we have discussed multiple methods to kill a Detached screen Session in Linux. In the first method, first, we have to attach the screen session, and then we can kill that. In the second, method we have seen that we can kill the screen session without attaching that. Comment Article Tags: Article Tags: [Technical Scripter](https://www.geeksforgeeks.org/category/technical-scripter/) [Linux-Unix](https://www.geeksforgeeks.org/category/linux-unix/) [Technical Scripter 2022](https://www.geeksforgeeks.org/tag/technical-scripter-2022/) ### Explore [![GeeksforGeeks](https://media.geeksforgeeks.org/auth-dashboard-uploads/gfgFooterLogo.png)](https://www.geeksforgeeks.org/) ![location](https://media.geeksforgeeks.org/img-practice/Location-1685004904.svg) Corporate & Communications Address: A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305) ![location](https://media.geeksforgeeks.org/img-practice/Location-1685004904.svg) Registered Address: K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305 [![GFG App on Play Store](https://media.geeksforgeeks.org/auth-dashboard-uploads/googleplay-%281%29.png)](https://geeksforgeeksapp.page.link/gfg-app)[![GFG App on App Store](https://media.geeksforgeeks.org/auth-dashboard-uploads/appstore-%281%29.png)](https://geeksforgeeksapp.page.link/gfg-app) - Company - [About Us](https://www.geeksforgeeks.org/about/) - [Legal](https://www.geeksforgeeks.org/legal/) - [Privacy Policy](https://www.geeksforgeeks.org/legal/privacy-policy/) - [Contact Us](https://www.geeksforgeeks.org/about/contact-us/) - [Advertise with us](https://www.geeksforgeeks.org/advertise-with-us/) - [GFG Corporate Solution](https://www.geeksforgeeks.org/gfg-corporate-solution/) - [Campus Training Program](https://www.geeksforgeeks.org/campus-training-program/) - Explore - [POTD](https://www.geeksforgeeks.org/problem-of-the-day) - [Job-A-Thon](https://practice.geeksforgeeks.org/events/rec/job-a-thon/) - [Blogs](https://www.geeksforgeeks.org/category/blogs/?type=recent) - [Nation Skill Up](https://www.geeksforgeeks.org/nation-skill-up/) - Tutorials - [Programming Languages](https://www.geeksforgeeks.org/computer-science-fundamentals/programming-language-tutorials/) - [DSA](https://www.geeksforgeeks.org/dsa/dsa-tutorial-learn-data-structures-and-algorithms/) - [Web Technology](https://www.geeksforgeeks.org/web-tech/web-technology/) - [AI, ML & Data Science](https://www.geeksforgeeks.org/machine-learning/ai-ml-and-data-science-tutorial-learn-ai-ml-and-data-science/) - [DevOps](https://www.geeksforgeeks.org/devops/devops-tutorial/) - [CS Core Subjects](https://www.geeksforgeeks.org/gate/gate-exam-tutorial/) - [Interview Preparation](https://www.geeksforgeeks.org/aptitude/interview-corner/) - [Software and Tools](https://www.geeksforgeeks.org/websites-apps/software-and-tools-a-to-z-list/) - Courses - [ML and Data Science](https://www.geeksforgeeks.org/courses/category/machine-learning-data-science) - [DSA and Placements](https://www.geeksforgeeks.org/courses/category/dsa-placements) - [Web Development](https://www.geeksforgeeks.org/courses/category/development-testing) - [Programming Languages](https://www.geeksforgeeks.org/courses/category/programming-languages) - [DevOps & Cloud](https://www.geeksforgeeks.org/courses/category/cloud-devops) - [GATE](https://www.geeksforgeeks.org/courses/category/gate) - [Trending Technologies](https://www.geeksforgeeks.org/courses/category/trending-technologies/) - Videos - [DSA](https://www.geeksforgeeks.org/videos/category/sde-sheet/) - [Python](https://www.geeksforgeeks.org/videos/category/python/) - [Java](https://www.geeksforgeeks.org/videos/category/java-w6y5f4/) - [C++](https://www.geeksforgeeks.org/videos/category/c/) - [Web Development](https://www.geeksforgeeks.org/videos/category/web-development/) - [Data Science](https://www.geeksforgeeks.org/videos/category/data-science/) - [CS Subjects](https://www.geeksforgeeks.org/videos/category/cs-subjects/) - Preparation Corner - [Interview Corner](https://www.geeksforgeeks.org/interview-prep/interview-corner/) - [Aptitude](https://www.geeksforgeeks.org/aptitude/aptitude-questions-and-answers/) - [Puzzles](https://www.geeksforgeeks.org/aptitude/puzzles/) - [GfG 160](https://www.geeksforgeeks.org/courses/gfg-160-series) - [System Design](https://www.geeksforgeeks.org/system-design/system-design-tutorial/) [@GeeksforGeeks, Sanchhaya Education Private Limited](https://www.geeksforgeeks.org/), [All rights reserved](https://www.geeksforgeeks.org/copyright-information/)
Readable Markdownnull
Shard103 (laksa)
Root Hash12046344915360636903
Unparsed URLorg,geeksforgeeks!www,/linux-unix/how-to-kill-a-detached-screen-session-in-linux/ s443