🕷️ Crawler Inspector

URL Lookup

Direct Parameter Lookup

Raw Queries and Responses

1. Shard Calculation

Query:
Response:
Calculated Shard: 122 (from laksa129)

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
24 days ago
🤖
ROBOTS ALLOWED

Page Info Filters

FilterStatusConditionDetails
HTTP statusPASSdownload_http_code = 200HTTP 200
Age cutoffPASSdownload_stamp > now() - 6 MONTH0.8 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://superuser.com/questions/1090752/kill-all-screen-sessions-with-same-name
Last Crawled2026-03-22 07:17:29 (24 days ago)
First Indexed2016-07-06 23:20:30 (9 years ago)
HTTP Status Code200
Meta Titlelinux - Kill all Screen Sessions with Same Name - Super User
Meta Descriptionnull
Meta Canonicalnull
Boilerpipe Text
2 I have multiple screen sessions with the same name due to a bug. How can I remove these all in 1 command without affecting other screen sessions? I used the command from this post: https://stackoverflow.com/questions/1509677/kill-detached-screen-session However it only prints out the sessions and doesn't remove them: What can I do to remove these sessions in 1 go without affecting other sessions? Thank you asked Jun 18, 2016 at 9:09 10 1 Here is what i used to kill all the screens named my_screens_to_kill_named_the_same: # Checking if there are some screen named if screen -list | grep -q "my_screens_to_kill_named_the_same"; then # Get the list of id of screens named ids_to_kill="$(screen -ls | awk '/\.my_screens_to_kill_named_the_same\t/' | awk '{print strtonum($1)}')" # Loop on that list and kill all the screens named for id_to_kill in ${ids_to_kill} do screen -X -S "$id_to_kill" quit done fi DarkDiamond 1,917 11 gold badges 16 silver badges 22 bronze badges answered Feb 10, 2023 at 13:13 1 You must log in to answer this question. Start asking to get answers Find the answer to your question by asking. Ask question Explore related questions See similar questions with these tags.
Markdown
[Skip to main content](https://superuser.com/questions/1090752/kill-all-screen-sessions-with-same-name#content) #### Stack Exchange Network Stack Exchange network consists of 183 Q\&A communities including [Stack Overflow](https://stackoverflow.com/), the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. [Visit Stack Exchange](https://stackexchange.com/) 1. - [Tour Start here for a quick overview of the site](https://superuser.com/tour) - [Help Center Detailed answers to any questions you might have](https://superuser.com/help) - [Meta Discuss the workings and policies of this site](https://meta.superuser.com/) - [About Us Learn more about Stack Overflow the company, and our products](https://stackoverflow.co/) 2. ### [current community](https://superuser.com/) - [Super User](https://superuser.com/) [help](https://superuser.com/help) [chat](https://chat.stackexchange.com/?tab=site&host=superuser.com) - [Meta Super User](https://meta.superuser.com/) ### your communities [Sign up](https://superuser.com/users/signup?ssrc=site_switcher&returnurl=https%3A%2F%2Fsuperuser.com%2Fquestions%2F1090752%2Fkill-all-screen-sessions-with-same-name) or [log in](https://superuser.com/users/login?ssrc=site_switcher&returnurl=https%3A%2F%2Fsuperuser.com%2Fquestions%2F1090752%2Fkill-all-screen-sessions-with-same-name) to customize your list. ### [more stack exchange communities](https://stackexchange.com/sites) [company blog](https://stackoverflow.blog/) 3. [Log in](https://superuser.com/users/login?ssrc=head&returnurl=https%3A%2F%2Fsuperuser.com%2Fquestions%2F1090752%2Fkill-all-screen-sessions-with-same-name) 4. [Sign up](https://superuser.com/users/signup?ssrc=head&returnurl=https%3A%2F%2Fsuperuser.com%2Fquestions%2F1090752%2Fkill-all-screen-sessions-with-same-name) [![Super User](https://superuser.com/Content/Sites/superuser/Img/logo.svg?v=4bc8a703ebac)](https://superuser.com/) 1. 1. [Home](https://superuser.com/) 2. [Questions](https://superuser.com/questions) 3. [Unanswered](https://superuser.com/unanswered) 4. [AI Assist](https://stackoverflow.com/ai-assist) 5. [Tags](https://superuser.com/tags) 6. [Chat](https://chat.stackexchange.com/) 7. [Users](https://superuser.com/users) 8. [Companies](https://stackoverflow.com/jobs/companies?so_medium=superuser&so_source=SiteNav) 2. Stack Internal Stack Overflow for Teams is now called **Stack Internal**. Bring the best of human thought and AI automation together at your work. [Try for free](https://stackoverflowteams.com/teams/create/free/?utm_medium=referral&utm_source=superuser-community&utm_campaign=side-bar&utm_content=explore-teams) [Learn more](https://stackoverflow.co/internal/?utm_medium=referral&utm_source=superuser-community&utm_campaign=side-bar&utm_content=explore-teams) 3. [Stack Internal]() 4. Bring the best of human thought and AI automation together at your work. [Learn more](https://stackoverflow.co/internal/?utm_medium=referral&utm_source=superuser-community&utm_campaign=side-bar&utm_content=explore-teams-compact) **Stack Internal** Knowledge at work Bring the best of human thought and AI automation together at your work. [Explore Stack Internal](https://stackoverflow.co/internal/?utm_medium=referral&utm_source=superuser-community&utm_campaign=side-bar&utm_content=explore-teams-compact-popover) # [Kill all Screen Sessions with Same Name](https://superuser.com/questions/1090752/kill-all-screen-sessions-with-same-name) [Ask Question](https://superuser.com/questions/ask) Asked 9 years, 9 months ago Modified [3 years, 1 month ago](https://superuser.com/questions/1090752/kill-all-screen-sessions-with-same-name?lastactivity "2023-02-15 13:58:52Z") Viewed 3k times 2 I have multiple screen sessions with the same name due to a bug. How can I remove these all in 1 command without affecting other screen sessions? I used the command from this post: <https://stackoverflow.com/questions/1509677/kill-detached-screen-session> However it only prints out the sessions and doesn't remove them: What can I do to remove these sessions in 1 go without affecting other sessions? Thank you - [linux](https://superuser.com/questions/tagged/linux "show questions tagged 'linux'") - [gnu-screen](https://superuser.com/questions/tagged/gnu-screen "show questions tagged 'gnu-screen'") - [kill](https://superuser.com/questions/tagged/kill "show questions tagged 'kill'") - [gnu](https://superuser.com/questions/tagged/gnu "show questions tagged 'gnu'") [Share](https://superuser.com/q/1090752 "Short permalink to this question") [Improve this question](https://superuser.com/posts/1090752/edit) Follow [edited May 23, 2017 at 12:41](https://superuser.com/posts/1090752/revisions "show all edits to this post") [![Community's user avatar](https://www.gravatar.com/avatar/a007be5a61f6aa8f3e85ae2fc18dd66e?s=64&d=identicon&r=PG)](https://superuser.com/users/-1/community) [Community](https://superuser.com/users/-1/community)Bot 1 asked Jun 18, 2016 at 9:09 [![Jack's user avatar](https://i.sstatic.net/erv5C.jpg?s=64)](https://superuser.com/users/607635/jack) [Jack](https://superuser.com/users/607635/jack) 12311 silver badge77 bronze badges 10 - Is the answer/Comments here what you are looking for? [stackoverflow.com/questions/14447131/…](http://stackoverflow.com/questions/14447131/kill-all-detached-screen-sessions "kill all detached screen sessions") NetworkKingPin – [NetworkKingPin](https://superuser.com/users/515502/networkkingpin "2,560 reputation") 2016-06-18 09:27:50 +00:00 Commented Jun 18, 2016 at 9:27 - Oo that is very similar. Is there a modified version to kill via the screen nam rather than the Pid? Because the Pid is different every time. That looks like it would remove all? Jack – [Jack](https://superuser.com/users/607635/jack "123 reputation") 2016-06-18 09:30:12 +00:00 Commented Jun 18, 2016 at 9:30 - Are they always detached? NetworkKingPin – [NetworkKingPin](https://superuser.com/users/515502/networkkingpin "2,560 reputation") 2016-06-18 09:38:05 +00:00 Commented Jun 18, 2016 at 9:38 - Yes they are always detached Jack – [Jack](https://superuser.com/users/607635/jack "123 reputation") 2016-06-18 09:43:11 +00:00 Commented Jun 18, 2016 at 9:43 - Have you tried this `screen -ls | grep Detached | cut -d. -f1 | awk '{print $1}' | xargs kill` NetworkKingPin – [NetworkKingPin](https://superuser.com/users/515502/networkkingpin "2,560 reputation") 2016-06-18 09:43:56 +00:00 Commented Jun 18, 2016 at 9:43 \| [Show **5** more comments](https://superuser.com/questions/1090752/kill-all-screen-sessions-with-same-name "Expand to show all comments on this post") ## 1 Answer 1 Sorted by: [Reset to default](https://superuser.com/questions/1090752/kill-all-screen-sessions-with-same-name?answertab=scoredesc#tab-top) 1 Here is what i used to kill all the screens named my\_screens\_to\_kill\_named\_the\_same: ``` # Checking if there are some screen named if screen -list | grep -q "my_screens_to_kill_named_the_same"; then # Get the list of id of screens named ids_to_kill="$(screen -ls | awk '/\.my_screens_to_kill_named_the_same\t/' | awk '{print strtonum($1)}')" # Loop on that list and kill all the screens named for id_to_kill in ${ids_to_kill} do screen -X -S "$id_to_kill" quit done fi ``` [Share](https://superuser.com/a/1767964 "Short permalink to this answer") [Improve this answer](https://superuser.com/posts/1767964/edit) Follow [edited Feb 15, 2023 at 13:58](https://superuser.com/posts/1767964/revisions "show all edits to this post") [![DarkDiamond's user avatar](https://www.gravatar.com/avatar/7b0121e0c545ee1738e1e59af64edb1f?s=64&d=identicon&r=PG&f=y&so-version=2)](https://superuser.com/users/1233794/darkdiamond) [DarkDiamond](https://superuser.com/users/1233794/darkdiamond) 1,9171111 gold badges1616 silver badges2222 bronze badges answered Feb 10, 2023 at 13:13 [![8oris's user avatar](https://www.gravatar.com/avatar/3af59eea061decee5260f64e2284a172?s=64&d=identicon&r=PG&f=y&so-version=2)](https://superuser.com/users/1772087/8oris) [8oris](https://superuser.com/users/1772087/8oris) 11133 bronze badges 1 - As it’s currently written, your answer is unclear. Please [edit](https://superuser.com/posts/1767964/edit) to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](https://superuser.com/help/how-to-answer). Community – [Community](https://superuser.com/users/-1/community "1 reputation") Bot 2023-02-10 13:14:21 +00:00 Commented Feb 10, 2023 at 13:14 [Add a comment](https://superuser.com/questions/1090752/kill-all-screen-sessions-with-same-name "Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.") \| ## You must [log in](https://superuser.com/users/login?ssrc=question_page&returnurl=https%3A%2F%2Fsuperuser.com%2Fquestions%2F1090752) to answer this question. Start asking to get answers Find the answer to your question by asking. [Ask question](https://superuser.com/questions/ask) Explore related questions - [linux](https://superuser.com/questions/tagged/linux "show questions tagged 'linux'") - [gnu-screen](https://superuser.com/questions/tagged/gnu-screen "show questions tagged 'gnu-screen'") - [kill](https://superuser.com/questions/tagged/kill "show questions tagged 'kill'") - [gnu](https://superuser.com/questions/tagged/gnu "show questions tagged 'gnu'") See similar questions with these tags. - The Overflow Blog - [After all the hype, was 2025 really the year of AI agents?](https://stackoverflow.blog/2026/03/20/was-2025-really-the-year-of-ai-agents/) - [AI is becoming a second brain at the expense of your first one](https://stackoverflow.blog/2026/03/19/ai-is-becoming-a-second-brain-at-the-expense-of-your-first-one/) #### Related [4](https://superuser.com/questions/121819/how-do-i-display-the-current-session-name-or-sockname-of-a-screen-session-in "Question score (upvotes - downvotes)") [How do I display the current "session" name or "sockname" of a screen session in the status bar?](https://superuser.com/questions/121819/how-do-i-display-the-current-session-name-or-sockname-of-a-screen-session-in) [3](https://superuser.com/questions/197825/how-do-i-create-several-screen-sessions-on-startup-in-linux "Question score (upvotes - downvotes)") [How do I create several screen sessions on startup in Linux?](https://superuser.com/questions/197825/how-do-i-create-several-screen-sessions-on-startup-in-linux) [10](https://superuser.com/questions/308940/how-can-i-launch-multiple-screen-sessions-from-a-single-bash-script "Question score (upvotes - downvotes)") [How can I launch multiple screen sessions from a single bash script?](https://superuser.com/questions/308940/how-can-i-launch-multiple-screen-sessions-from-a-single-bash-script) [2](https://superuser.com/questions/481385/a-way-to-auto-cycle-close-through-all-screen-sessions "Question score (upvotes - downvotes)") [A way to auto cycle (close) through all screen sessions](https://superuser.com/questions/481385/a-way-to-auto-cycle-close-through-all-screen-sessions) [3](https://superuser.com/questions/532185/screen-session-wouldnt-detach-now-it-wont-attach "Question score (upvotes - downvotes)") [Screen session wouldn't detach, now it won't attach](https://superuser.com/questions/532185/screen-session-wouldnt-detach-now-it-wont-attach) [2](https://superuser.com/questions/603374/how-to-remove-many-detached-screen-sessions-in-unix "Question score (upvotes - downvotes)") [How to remove many detached screen sessions in Unix?](https://superuser.com/questions/603374/how-to-remove-many-detached-screen-sessions-in-unix) [6](https://superuser.com/questions/667395/how-can-i-start-new-window-in-the-same-screen-session-automatically "Question score (upvotes - downvotes)") [How can I start new window in the same screen session automatically?](https://superuser.com/questions/667395/how-can-i-start-new-window-in-the-same-screen-session-automatically) [1](https://superuser.com/questions/676775/how-do-i-use-shellscripts-for-rails-with-screen "Question score (upvotes - downvotes)") [How do I use shellscripts for rails with 'screen'?](https://superuser.com/questions/676775/how-do-i-use-shellscripts-for-rails-with-screen) [1](https://superuser.com/questions/790685/screen-reattach-last-session "Question score (upvotes - downvotes)") [screen - reattach last session](https://superuser.com/questions/790685/screen-reattach-last-session) #### [Hot Network Questions](https://stackexchange.com/questions?tab=hot) - [Does Shifu with the different spelling 师父 and 师傅 have the same meaning?](https://chinese.stackexchange.com/questions/64012/does-shifu-with-the-different-spelling-%E5%B8%88%E7%88%B6-and-%E5%B8%88%E5%82%85-have-the-same-meaning) - [Have armed forces ever transfused their wounded soldiers with blood forcibly collected from enemy fighters or occupied civilian populations?](https://history.stackexchange.com/questions/79937/have-armed-forces-ever-transfused-their-wounded-soldiers-with-blood-forcibly-col) - [What is this weapon in English ? 仕込み棍/ Shikomikon](https://japanese.stackexchange.com/questions/111885/what-is-this-weapon-in-english-%E4%BB%95%E8%BE%BC%E3%81%BF%E6%A3%8D-shikomikon) - [Complex dice rolling system for a d6, struggling to get an accurate probability calculator](https://rpg.stackexchange.com/questions/218984/complex-dice-rolling-system-for-a-d6-struggling-to-get-an-accurate-probability) - [Why does Loge's motive appear at the end of Act 2 of Götterdämmerung?](https://music.stackexchange.com/questions/143383/why-does-loges-motive-appear-at-the-end-of-act-2-of-g%C3%B6tterd%C3%A4mmerung) - [Why is the IEC 60950-1 AC peak touch safe voltage lower than DC?](https://electronics.stackexchange.com/questions/767201/why-is-the-iec-60950-1-ac-peak-touch-safe-voltage-lower-than-dc) - [Does something about the law explain why the state gave a new driver's license to a convicted drunk driver?](https://law.stackexchange.com/questions/114439/does-something-about-the-law-explain-why-the-state-gave-a-new-drivers-license-t) - [In an experiment where weight is increased in steps and force is measured in each step, is a column graph or line graph scientifically correct?](https://physics.stackexchange.com/questions/870372/in-an-experiment-where-weight-is-increased-in-steps-and-force-is-measured-in-eac) - [When can relatives use cash belonging to an intestate decedent to pay for his cremation, his burial, etc.?](https://law.stackexchange.com/questions/114445/when-can-relatives-use-cash-belonging-to-an-intestate-decedent-to-pay-for-his-cr) - [Number of odd three digit numbers that have distinct digits.](https://math.stackexchange.com/questions/5129586/number-of-odd-three-digit-numbers-that-have-distinct-digits) - [Obstruction to deforming a cross-section](https://mathoverflow.net/questions/509320/obstruction-to-deforming-a-cross-section) - [Self-compiling and -executing Shell/C polyglot?](https://unix.stackexchange.com/questions/805098/self-compiling-and-executing-shell-c-polyglot) - [How do physicalists explain rational oughts?](https://philosophy.stackexchange.com/questions/137158/how-do-physicalists-explain-rational-oughts) - [Gravitational Waves to sound](https://physics.stackexchange.com/questions/870359/gravitational-waves-to-sound) - [Subfigures are not referring with correct figure number when using minipage](https://tex.stackexchange.com/questions/761098/subfigures-are-not-referring-with-correct-figure-number-when-using-minipage) - [Lassaigne's test for detection of nitrogen](https://chemistry.stackexchange.com/questions/195254/lassaignes-test-for-detection-of-nitrogen) - [What is the temperature of light?](https://physics.stackexchange.com/questions/870313/what-is-the-temperature-of-light) - [Does it make sense to have a minor utility be a Basic Facility in a Bastion?](https://rpg.stackexchange.com/questions/218983/does-it-make-sense-to-have-a-minor-utility-be-a-basic-facility-in-a-bastion) - [Roper multiattack management clarification](https://rpg.stackexchange.com/questions/218988/roper-multiattack-management-clarification) - [Are the 153 fish in John 21:11 explained by the 153,000 strangers of 2.Chronicles 2:17?](https://hermeneutics.stackexchange.com/questions/115433/are-the-153-fish-in-john-2111-explained-by-the-153-000-strangers-of-2-chronicle) - [What is this image/manhwa panel from?](https://scifi.stackexchange.com/questions/303774/what-is-this-image-manhwa-panel-from) - [Lights-out variant on a beveled cube](https://puzzling.stackexchange.com/questions/137467/lights-out-variant-on-a-beveled-cube) - [Story written as book reviews of fictional SF books - with a twist](https://scifi.stackexchange.com/questions/303760/story-written-as-book-reviews-of-fictional-sf-books-with-a-twist) - [Signature disapears when renewing closing command of the letter class](https://tex.stackexchange.com/questions/761096/signature-disapears-when-renewing-closing-command-of-the-letter-class) [more hot questions](https://superuser.com/questions/1090752/kill-all-screen-sessions-with-same-name) [Question feed](https://superuser.com/feeds/question/1090752 "Feed of this question and its answers") # Subscribe to RSS Question feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader. ![](https://superuser.com/posts/1090752/ivc/bf26?prg=bbae13d8-7f10-4b0b-8ed7-8f98d35d4c1e) ##### [Super User](https://superuser.com/) - [Tour](https://superuser.com/tour) - [Help](https://superuser.com/help) - [Chat](https://chat.stackexchange.com/?tab=site&host=superuser.com) - [Contact](https://superuser.com/contact) - [Feedback](https://meta.superuser.com/) ##### [Company](https://stackoverflow.co/) - [Stack Overflow](https://stackoverflow.com/) - [Stack Internal](https://stackoverflow.co/internal/) - [Stack Data Licensing](https://stackoverflow.co/data-licensing/) - [Stack Ads](https://stackoverflow.co/advertising/) - [About](https://stackoverflow.co/) - [Press](https://stackoverflow.co/company/press/) - [Legal](https://stackoverflow.com/legal) - [Privacy Policy](https://stackoverflow.com/legal/privacy-policy) - [Terms of Service](https://stackoverflow.com/legal/terms-of-service/public) - Cookie Settings - [Cookie Policy](https://policies.stackoverflow.co/stack-overflow/cookie-policy) ##### [Stack Exchange Network](https://stackexchange.com/) - [Technology](https://stackexchange.com/sites#technology) - [Culture & recreation](https://stackexchange.com/sites#culturerecreation) - [Life & arts](https://stackexchange.com/sites#lifearts) - [Science](https://stackexchange.com/sites#science) - [Professional](https://stackexchange.com/sites#professional) - [Business](https://stackexchange.com/sites#business) - [API](https://api.stackexchange.com/) - [Data](https://data.stackexchange.com/) - [Blog](https://stackoverflow.blog/?blb=1) - [Facebook](https://www.facebook.com/officialstackoverflow/) - [Twitter](https://twitter.com/stackoverflow) - [LinkedIn](https://linkedin.com/company/stack-overflow) - [Instagram](https://www.instagram.com/thestackoverflow) Site design / logo © 2026 Stack Exchange Inc; user contributions licensed under [CC BY-SA](https://stackoverflow.com/help/licensing) . rev 2026.3.20.41360
Readable Markdown
2 I have multiple screen sessions with the same name due to a bug. How can I remove these all in 1 command without affecting other screen sessions? I used the command from this post: <https://stackoverflow.com/questions/1509677/kill-detached-screen-session> However it only prints out the sessions and doesn't remove them: What can I do to remove these sessions in 1 go without affecting other sessions? Thank you [![Community's user avatar](https://www.gravatar.com/avatar/a007be5a61f6aa8f3e85ae2fc18dd66e?s=64&d=identicon&r=PG)](https://superuser.com/users/-1/community) asked Jun 18, 2016 at 9:09 [![Jack's user avatar](https://i.sstatic.net/erv5C.jpg?s=64)](https://superuser.com/users/607635/jack) 10 1 Here is what i used to kill all the screens named my\_screens\_to\_kill\_named\_the\_same: ``` # Checking if there are some screen named if screen -list | grep -q "my_screens_to_kill_named_the_same"; then # Get the list of id of screens named ids_to_kill="$(screen -ls | awk '/\.my_screens_to_kill_named_the_same\t/' | awk '{print strtonum($1)}')" # Loop on that list and kill all the screens named for id_to_kill in ${ids_to_kill} do screen -X -S "$id_to_kill" quit done fi ``` [![DarkDiamond's user avatar](https://www.gravatar.com/avatar/7b0121e0c545ee1738e1e59af64edb1f?s=64&d=identicon&r=PG&f=y&so-version=2)](https://superuser.com/users/1233794/darkdiamond) [DarkDiamond](https://superuser.com/users/1233794/darkdiamond) 1,91711 gold badges16 silver badges22 bronze badges answered Feb 10, 2023 at 13:13 [![8oris's user avatar](https://www.gravatar.com/avatar/3af59eea061decee5260f64e2284a172?s=64&d=identicon&r=PG&f=y&so-version=2)](https://superuser.com/users/1772087/8oris) 1 ## You must [log in](https://superuser.com/users/login?ssrc=question_page&returnurl=https%3A%2F%2Fsuperuser.com%2Fquestions%2F1090752) to answer this question. Start asking to get answers Find the answer to your question by asking. [Ask question](https://superuser.com/questions/ask) Explore related questions See similar questions with these tags.
Shard122 (laksa)
Root Hash3131140398176769522
Unparsed URLcom,superuser!/questions/1090752/kill-all-screen-sessions-with-same-name s443