🕷️ Crawler Inspector

URL Lookup

Direct Parameter Lookup

Raw Queries and Responses

1. Shard Calculation

Query:
Response:
Calculated Shard: 19 (from laksa112)

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
1 month ago
🤖
ROBOTS ALLOWED

Page Info Filters

FilterStatusConditionDetails
HTTP statusPASSdownload_http_code = 200HTTP 200
Age cutoffPASSdownload_stamp > now() - 6 MONTH1.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://serverfault.com/questions/96406/kill-a-screen-but-not-all-screens
Last Crawled2026-03-09 19:10:58 (1 month ago)
First Indexed2014-08-23 18:52:20 (11 years ago)
HTTP Status Code200
Meta Titlebash - kill a screen (but not all screens) - Server Fault
Meta Descriptionnull
Meta Canonicalnull
Boilerpipe Text
This question shows research effort; it is useful and clear 22 Save this question. Show activity on this post. I have multiple screens running on an Ubuntu server that are initiated as: screen -dmS screen1 cmd screen -dmS screen2 cmd etc... And I need to kill one screen, but not all of them. What is the correct command to kill a single particular screen with its name? I've read through the man pages but I can't seem to find the command I am looking for. Also I want to write this command into a bash script so I can't simply screen -r screen1 then press Ctrl + X as I normally would. chicks 3,903 10 gold badges 30 silver badges 37 bronze badges asked Dec 21, 2009 at 18:45 6 This answer is useful 21 Save this answer. Show activity on this post. From the man page : -X Send the specified command to a running screen session. You can use the -d or -r option to tell screen to look only for attached or detached screen sessions. Note that this command doesn 't work if the session is password protected. You can do : screen -X -S <sessionid> kill answered Dec 21, 2009 at 18:56 2 This answer is useful 10 Save this answer. Show activity on this post. If you do a screen -list , you'll notice that each screen name begins with a number, which is the PID of the screen: $ screen -list There are screens on: 12281.pts-1.jonah (12/21/2009 07:53:19 PM) (Attached) 10455.pts-1.jonah (12/19/2009 10:55:25 AM) (Detached) 2 Sockets in /var/run/screen/S-raphink. From there, just send a KILL signal to this specific PID: $ kill 12281 and it will kill the specific screen. answered Dec 21, 2009 at 18:54 2 This answer is useful 2 Save this answer. Show activity on this post. If you have several screens with the same name, you can kill them at once: screen - ls | egrep "^\s*[0-9]+.ScreenName" | awk -F "." '{print $1}' | xargs kill Command screen -ls prints screens with their process number. For example, 4773.test is a screen with process number 4773 and the name test . Sample output: 6322.ss (05/23/2018 10:39:08 AM) (Detached) 6305.sc (05/23/2018 10:38:40 AM) (Detached) 6265.ScreenName (05/23/2018 10:37:59 AM) (Detached) 6249.ScreenName (05/23/2018 10:37:50 AM) (Detached) 6236.scc (05/23/2018 10:37:42 AM) (Detached) Command egrep filters above sample text sent via piped line | . Command awk -F "." '{print $1}' extracts first column of each line. Delimiter between columns is defined as dot (.) by option -F Finally command xargs kill will kill all process whose numbers sent via pipe |. xargs is used when we want to execute a command on each of inputs. answered May 23, 2018 at 11:11 This answer is useful 1 Save this answer. Show activity on this post. defraagh's solution doesn't work for me, however I can kill the screen session using Raphink's idea: screen -list get the process ID kill -9 PROCESSID screen -wipe SESSIONID answered Sep 29, 2010 at 19:26 This answer is useful 1 Save this answer. Show activity on this post. Ive been dealing with this as follows: process=$(screen - ls | grep screen1) kill $( echo $process | cut -f1 -d '.' ) exit The explanation is that you take the output of screen -ls and find the particular screen you are interested in by using grep then assign that string to the variable process . Since the output from screen -ls is always the PID followed by a period you can then use cut to get rid of the period and everything after it. in the above example we put that in parentheses and feed it to the kill command though you could do it linearly which might include writing to a temp file and reading out of that. You need to make sure that your screen name is unique and that grep is ONLY returning the name of the screen you want to kill. Rovanion 689 3 gold badges 7 silver badges 22 bronze badges answered Feb 25, 2015 at 1:39 This answer is useful 0 Save this answer. Show activity on this post. You open a new window with Ctrl A + C You close a window with Ctrl + D or exit command within the window answered May 23, 2017 at 15:09 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
# ![site logo](https://stackoverflow.com/Content/Img/SE-logo75.png) By clicking “Sign up”, you agree to our [terms of service](https://serverfault.com/legal/terms-of-service/public) and acknowledge you have read our [privacy policy](https://serverfault.com/legal/privacy-policy). # OR Already have an account? [Log in](https://serverfault.com/users/login) [Skip to main content](https://serverfault.com/questions/96406/kill-a-screen-but-not-all-screens#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://serverfault.com/tour) - [Help Center Detailed answers to any questions you might have](https://serverfault.com/help) - [Meta Discuss the workings and policies of this site](https://meta.serverfault.com/) - [About Us Learn more about Stack Overflow the company, and our products](https://stackoverflow.co/) 2. ### [current community](https://serverfault.com/) - [Server Fault](https://serverfault.com/) [help](https://serverfault.com/help) [chat](https://chat.stackexchange.com/?tab=all&sort=active) - [Meta Server Fault](https://meta.serverfault.com/) ### your communities [Sign up](https://serverfault.com/users/signup?ssrc=site_switcher&returnurl=https%3A%2F%2Fserverfault.com%2Fquestions%2F96406%2Fkill-a-screen-but-not-all-screens) or [log in](https://serverfault.com/users/login?ssrc=site_switcher&returnurl=https%3A%2F%2Fserverfault.com%2Fquestions%2F96406%2Fkill-a-screen-but-not-all-screens) to customize your list. ### [more stack exchange communities](https://stackexchange.com/sites) [company blog](https://stackoverflow.blog/) 3. [Log in](https://serverfault.com/users/login?ssrc=head&returnurl=https%3A%2F%2Fserverfault.com%2Fquestions%2F96406%2Fkill-a-screen-but-not-all-screens) 4. [Sign up](https://serverfault.com/users/signup?ssrc=head&returnurl=https%3A%2F%2Fserverfault.com%2Fquestions%2F96406%2Fkill-a-screen-but-not-all-screens) [![Server Fault](https://serverfault.com/Content/Sites/serverfault/Img/logo.svg?v=43f5b6d5f65b)](https://serverfault.com/) 1. 1. [Home](https://serverfault.com/) 2. [Questions](https://serverfault.com/questions) 3. [Unanswered](https://serverfault.com/unanswered) 4. [AI Assist](https://stackoverflow.com/ai-assist) 5. [Tags](https://serverfault.com/tags) 6. [Chat](https://chat.stackexchange.com/rooms/158962/stack-exchange-lobby) 7. [Users](https://serverfault.com/users) 8. [Companies](https://stackoverflow.com/jobs/companies?so_medium=serverfault&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=serverfault-community&utm_campaign=side-bar&utm_content=explore-teams) [Learn more](https://stackoverflow.co/internal/?utm_medium=referral&utm_source=serverfault-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=serverfault-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=serverfault-community&utm_campaign=side-bar&utm_content=explore-teams-compact-popover) # [kill a screen (but not all screens)](https://serverfault.com/questions/96406/kill-a-screen-but-not-all-screens) [Ask Question](https://serverfault.com/questions/ask) Asked 16 years, 1 month ago Modified [7 years, 7 months ago](https://serverfault.com/questions/96406/kill-a-screen-but-not-all-screens?lastactivity "2018-06-13 09:51:29Z") Viewed 58k times This question shows research effort; it is useful and clear 22 Save this question. Show activity on this post. I have multiple screens running on an Ubuntu server that are initiated as: ``` screen -dmS screen1 cmd screen -dmS screen2 cmd etc... ``` And I need to kill one screen, but not all of them. What is the correct command to kill a single particular screen with its name? I've read through the [man pages](http://www.manpagez.com/man/1/screen/) but I can't seem to find the command I am looking for. Also I want to write this command into a bash script so I can't simply **`screen -r screen1`** then press `Ctrl`\+`X` as I normally would. - [bash](https://serverfault.com/questions/tagged/bash "show questions tagged 'bash'") - [gnu-screen](https://serverfault.com/questions/tagged/gnu-screen "show questions tagged 'gnu-screen'") - [kill](https://serverfault.com/questions/tagged/kill "show questions tagged 'kill'") [Share](https://serverfault.com/q/96406 "Short permalink to this question") Share a link to this question Copy link [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/ "The current license for this post: CC BY-SA 3.0") [Improve this question](https://serverfault.com/posts/96406/edit) Follow Follow this question to receive notifications [edited May 23, 2017 at 16:40](https://serverfault.com/posts/96406/revisions "show all edits to this post") [![chicks's user avatar](https://www.gravatar.com/avatar/222d816f24fcb2d01e92937b6af01d34?s=64&d=identicon&r=PG)](https://serverfault.com/users/205542/chicks) [chicks](https://serverfault.com/users/205542/chicks) 3,9031010 gold badges3030 silver badges3737 bronze badges asked Dec 21, 2009 at 18:45 [![BassKozz's user avatar](https://www.gravatar.com/avatar/782d6170767beea468383e84c7e24c1a?s=64&d=identicon&r=PG)](https://serverfault.com/users/29651/basskozz) [BassKozz](https://serverfault.com/users/29651/basskozz) 67533 gold badges88 silver badges1515 bronze badges 6 - Sorry, thought this was about Donkey Kong for a second Chopper3 – [Chopper3](https://serverfault.com/users/1435/chopper3 "101,846 reputation") 2009-12-21 18:46:37 +00:00 [Commented Dec 21, 2009 at 18:46](https://serverfault.com/questions/96406/kill-a-screen-but-not-all-screens#comment80276_96406) - I love this t-shirt [ohgizmo.com/wp-content/uploads/2008/11/…](http://www.ohgizmo.com/wp-content/uploads/2008/11/donkeykong_killscreen.jpg) Chopper3 – [Chopper3](https://serverfault.com/users/1435/chopper3 "101,846 reputation") 2009-12-21 18:57:50 +00:00 [Commented Dec 21, 2009 at 18:57](https://serverfault.com/questions/96406/kill-a-screen-but-not-all-screens#comment80282_96406) - That is a nice tee, most people won't get it thou, unless they've seen "The King of Kong": [imdb.com/title/tt0923752](http://www.imdb.com/title/tt0923752/) BassKozz – [BassKozz](https://serverfault.com/users/29651/basskozz "675 reputation") 2009-12-21 19:07:18 +00:00 [Commented Dec 21, 2009 at 19:07](https://serverfault.com/questions/96406/kill-a-screen-but-not-all-screens#comment80287_96406) - The correct word for an object of a phrase is "thee". Dennis Williamson – [Dennis Williamson](https://serverfault.com/users/1293/dennis-williamson "64,373 reputation") 2009-12-21 19:12:15 +00:00 [Commented Dec 21, 2009 at 19:12](https://serverfault.com/questions/96406/kill-a-screen-but-not-all-screens#comment80288_96406) - 3 You said "get it thou" here and "Thanks thou" below. It should be "get it \[for\] thee" and "Thanks \[be to\] thee". Dennis Williamson – [Dennis Williamson](https://serverfault.com/users/1293/dennis-williamson "64,373 reputation") 2009-12-21 23:08:16 +00:00 [Commented Dec 21, 2009 at 23:08](https://serverfault.com/questions/96406/kill-a-screen-but-not-all-screens#comment80379_96406) \| [Show **1** more comment](https://serverfault.com/questions/96406/kill-a-screen-but-not-all-screens "Expand to show all comments on this post") ## 6 Answers 6 Sorted by: [Reset to default](https://serverfault.com/questions/96406/kill-a-screen-but-not-all-screens?answertab=scoredesc#tab-top) This answer is useful 21 Save this answer. Show activity on this post. From the man page : ``` -X Send the specified command to a running screen session. You can use the -d or -r option to tell screen to look only for attached or detached screen sessions. Note that this command doesn't work if the session is password protected. ``` You can do : ``` screen -X -S <sessionid> kill ``` [Share](https://serverfault.com/a/96414 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/ "The current license for this post: CC BY-SA 2.5") [Improve this answer](https://serverfault.com/posts/96414/edit) Follow Follow this answer to receive notifications answered Dec 21, 2009 at 18:56 [![François Feugeas's user avatar](https://www.gravatar.com/avatar/8fd64c22c21f06e4ac6282edd422f047?s=64&d=identicon&r=PG)](https://serverfault.com/users/16775/fran%C3%A7ois-feugeas) [François Feugeas](https://serverfault.com/users/16775/fran%C3%A7ois-feugeas) 1,4111010 silver badges1717 bronze badges 2 - PERFECT!!! Thanks defraagh, musta missed that in the man. BassKozz – [BassKozz](https://serverfault.com/users/29651/basskozz "675 reputation") 2009-12-21 19:05:37 +00:00 [Commented Dec 21, 2009 at 19:05](https://serverfault.com/questions/96406/kill-a-screen-but-not-all-screens#comment80285_96414) - Good to know :-) raphink – [raphink](https://serverfault.com/users/29328/raphink "13,145 reputation") 2009-12-21 20:05:01 +00:00 [Commented Dec 21, 2009 at 20:05](https://serverfault.com/questions/96406/kill-a-screen-but-not-all-screens#comment80297_96414) [Add a comment](https://serverfault.com/questions/96406/kill-a-screen-but-not-all-screens "Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.") \| This answer is useful 10 Save this answer. Show activity on this post. If you do a `screen -list`, you'll notice that each screen name begins with a number, which is the PID of the screen: ``` $ screen -list There are screens on: 12281.pts-1.jonah (12/21/2009 07:53:19 PM) (Attached) 10455.pts-1.jonah (12/19/2009 10:55:25 AM) (Detached) 2 Sockets in /var/run/screen/S-raphink. ``` From there, just send a KILL signal to this specific PID: ``` $ kill 12281 ``` and it will kill the specific screen. [Share](https://serverfault.com/a/96412 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/ "The current license for this post: CC BY-SA 2.5") [Improve this answer](https://serverfault.com/posts/96412/edit) Follow Follow this answer to receive notifications answered Dec 21, 2009 at 18:54 [![raphink's user avatar](https://i.sstatic.net/MfqBc.png?s=64)](https://serverfault.com/users/29328/raphink) [raphink](https://serverfault.com/users/29328/raphink) 13\.1k66 gold badges4242 silver badges4848 bronze badges 2 - this won't work because I am running it from a bash script, and I rather not have to pull the PID from screen -list that matches the correct screen... defraagh's answer above worked like a charm. Thanks thou. BassKozz – [BassKozz](https://serverfault.com/users/29651/basskozz "675 reputation") 2009-12-21 19:03:51 +00:00 [Commented Dec 21, 2009 at 19:03](https://serverfault.com/questions/96406/kill-a-screen-but-not-all-screens#comment80284_96412) - Ok, good that defraagh had a perfect solution for it. raphink – [raphink](https://serverfault.com/users/29328/raphink "13,145 reputation") 2009-12-21 20:05:39 +00:00 [Commented Dec 21, 2009 at 20:05](https://serverfault.com/questions/96406/kill-a-screen-but-not-all-screens#comment80300_96412) [Add a comment](https://serverfault.com/questions/96406/kill-a-screen-but-not-all-screens "Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.") \| This answer is useful 2 Save this answer. Show activity on this post. If you have several screens with the same name, you can kill them at once: ``` screen -ls | egrep "^\s*[0-9]+.ScreenName" | awk -F "." '{print $1}' | xargs kill ``` - Command `screen -ls` prints screens with their process number. For example, **4773\.test** is a screen with process number **4773** and the name **test**. Sample output: ``` 6322.ss (05/23/2018 10:39:08 AM) (Detached) 6305.sc (05/23/2018 10:38:40 AM) (Detached) 6265.ScreenName (05/23/2018 10:37:59 AM) (Detached) 6249.ScreenName (05/23/2018 10:37:50 AM) (Detached) 6236.scc (05/23/2018 10:37:42 AM) (Detached) ``` - Command `egrep` filters above sample text sent via piped line **\|**. - Command `awk -F "." '{print $1}'` extracts first column of each line. Delimiter between columns is defined as **dot (.)** by option **\-F** - Finally command `xargs kill` will kill all process whose numbers sent via pipe \|. `xargs` is used when we want to execute a command on each of inputs. [Share](https://serverfault.com/a/913402 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://serverfault.com/posts/913402/edit) Follow Follow this answer to receive notifications answered May 23, 2018 at 11:11 [![محسن عباسی's user avatar](https://i.sstatic.net/79jbH.jpg?s=64)](https://serverfault.com/users/332254/%D9%85%D8%AD%D8%B3%D9%86-%D8%B9%D8%A8%D8%A7%D8%B3%DB%8C) [محسن عباسی](https://serverfault.com/users/332254/%D9%85%D8%AD%D8%B3%D9%86-%D8%B9%D8%A8%D8%A7%D8%B3%DB%8C) 12133 bronze badges [Add a comment](https://serverfault.com/questions/96406/kill-a-screen-but-not-all-screens "Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.") \| This answer is useful 1 Save this answer. Show activity on this post. defraagh's solution doesn't work for me, however I can kill the screen session using Raphink's idea: screen -list get the process ID kill -9 PROCESSID screen -wipe SESSIONID [Share](https://serverfault.com/a/185945 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/ "The current license for this post: CC BY-SA 2.5") [Improve this answer](https://serverfault.com/posts/185945/edit) Follow Follow this answer to receive notifications answered Sep 29, 2010 at 19:26 [![garconcn's user avatar](https://www.gravatar.com/avatar/1199d683a04f0e261ab08b1384afe94f?s=64&d=identicon&r=PG)](https://serverfault.com/users/26731/garconcn) [garconcn](https://serverfault.com/users/26731/garconcn) 2,44888 gold badges3636 silver badges4646 bronze badges [Add a comment](https://serverfault.com/questions/96406/kill-a-screen-but-not-all-screens "Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.") \| This answer is useful 1 Save this answer. Show activity on this post. Ive been dealing with this as follows: ``` process=$(screen -ls | grep screen1) kill $(echo $process | cut -f1 -d'.') exit ``` The explanation is that you take the output of `screen -ls` and find the particular screen you are interested in by using grep then assign that string to the variable `process`. Since the output from `screen -ls` is always the PID followed by a period you can then use cut to get rid of the period and everything after it. in the above example we put that in parentheses and feed it to the kill command though you could do it linearly which might include writing to a temp file and reading out of that. You need to make sure that your screen name is unique and that grep is ONLY returning the name of the screen you want to kill. [Share](https://serverfault.com/a/671171 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/ "The current license for this post: CC BY-SA 3.0") [Improve this answer](https://serverfault.com/posts/671171/edit) Follow Follow this answer to receive notifications [edited Oct 28, 2017 at 12:17](https://serverfault.com/posts/671171/revisions "show all edits to this post") [![Rovanion's user avatar](https://www.gravatar.com/avatar/647721cbb1c1e416855f57251818be2e?s=64&d=identicon&r=PG)](https://serverfault.com/users/185467/rovanion) [Rovanion](https://serverfault.com/users/185467/rovanion) 68933 gold badges77 silver badges2222 bronze badges answered Feb 25, 2015 at 1:39 [![unifex's user avatar](https://www.gravatar.com/avatar/713c4dfe9406796983fb9a01b550aae2?s=64&d=identicon&r=PG)](https://serverfault.com/users/273147/unifex) [unifex](https://serverfault.com/users/273147/unifex) 1111 bronze badge [Add a comment](https://serverfault.com/questions/96406/kill-a-screen-but-not-all-screens "Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.") \| This answer is useful 0 Save this answer. Show activity on this post. You open a new window with ``` Ctrl A + C ``` You close a window with ``` Ctrl + D ``` or exit command within the window [Share](https://serverfault.com/a/851834 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/ "The current license for this post: CC BY-SA 3.0") [Improve this answer](https://serverfault.com/posts/851834/edit) Follow Follow this answer to receive notifications answered May 23, 2017 at 15:09 [![Thomas Ducrot's user avatar](https://www.gravatar.com/avatar/b1de1e87961a7ac1530e8a33219f61d0?s=64&d=identicon&r=PG&f=y&so-version=2)](https://serverfault.com/users/416828/thomas-ducrot) [Thomas Ducrot](https://serverfault.com/users/416828/thomas-ducrot) 10122 bronze badges [Add a comment](https://serverfault.com/questions/96406/kill-a-screen-but-not-all-screens "Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.") \| ## You must [log in](https://serverfault.com/users/login?ssrc=question_page&returnurl=https%3A%2F%2Fserverfault.com%2Fquestions%2F96406) to answer this question. Start asking to get answers Find the answer to your question by asking. [Ask question](https://serverfault.com/questions/ask) Explore related questions - [bash](https://serverfault.com/questions/tagged/bash "show questions tagged 'bash'") - [gnu-screen](https://serverfault.com/questions/tagged/gnu-screen "show questions tagged 'gnu-screen'") - [kill](https://serverfault.com/questions/tagged/kill "show questions tagged 'kill'") See similar questions with these tags. - The Overflow Blog - [Stack Gives Back 2025\!](https://stackoverflow.blog/2026/01/26/stack-gives-back-2025/?cb=1) - [Spy vs spy at scale](https://stackoverflow.blog/2026/01/27/spy-vs-spy-at-scale/?cb=1) - Featured on Meta - [Community Engagement Across the Network: Focus for 2026](https://meta.stackexchange.com/questions/416985/community-engagement-across-the-network-focus-for-2026?cb=1) - [Results of the January 2026 Community Asks Sprint: Community Badges](https://meta.stackexchange.com/questions/417043/results-of-the-january-2026-community-asks-sprint-community-badges?cb=1) - [Server Fault now uses machine learning to flag spam automatically](https://meta.serverfault.com/questions/11005/server-fault-now-uses-machine-learning-to-flag-spam-automatically?cb=1) #### Linked [0](https://serverfault.com/questions/512072/quitting-screens-with-same-name-with-ssh?lq=1 "Question score (upvotes - downvotes)") [Quitting Screens With Same Name With SSH](https://serverfault.com/questions/512072/quitting-screens-with-same-name-with-ssh?noredirect=1&lq=1) #### Related [285](https://serverfault.com/questions/24425/can-i-nohup-screen-an-already-started-process?rq=1 "Question score (upvotes - downvotes)") [Can I nohup/screen an already-started process?](https://serverfault.com/questions/24425/can-i-nohup-screen-an-already-started-process?rq=1) [13](https://serverfault.com/questions/41494/linux-kill-all-my-processes-but-not-this-terminal?rq=1 "Question score (upvotes - downvotes)") [linux: kill all my processes but not this terminal](https://serverfault.com/questions/41494/linux-kill-all-my-processes-but-not-this-terminal?rq=1) [288](https://serverfault.com/questions/55880/moving-an-already-running-process-to-screen?rq=1 "Question score (upvotes - downvotes)") [Moving an already-running process to Screen](https://serverfault.com/questions/55880/moving-an-already-running-process-to-screen?rq=1) [0](https://serverfault.com/questions/95756/putty-screen-auto-terminating-screens?rq=1 "Question score (upvotes - downvotes)") [Putty + Screen Auto Terminating Screens](https://serverfault.com/questions/95756/putty-screen-auto-terminating-screens?rq=1) [180](https://serverfault.com/questions/116775/sudo-as-different-user-and-running-screen?rq=1 "Question score (upvotes - downvotes)") [Sudo as different user and running screen](https://serverfault.com/questions/116775/sudo-as-different-user-and-running-screen?rq=1) [0](https://serverfault.com/questions/143319/how-to-kill-all-screens-that-has-been-up-longer-then-3-weeks?rq=1 "Question score (upvotes - downvotes)") [How to kill all screens that has been up longer then 3 weeks?](https://serverfault.com/questions/143319/how-to-kill-all-screens-that-has-been-up-longer-then-3-weeks?rq=1) [106](https://serverfault.com/questions/194597/how-to-reload-screenrc-without-restarting-screen?rq=1 "Question score (upvotes - downvotes)") [How to reload screenrc without restarting screen?](https://serverfault.com/questions/194597/how-to-reload-screenrc-without-restarting-screen?rq=1) [191](https://serverfault.com/questions/368054/run-an-interactive-bash-subshell-with-initial-commands-without-returning-to-the?rq=1 "Question score (upvotes - downvotes)") [Run an interactive bash subshell with initial commands without returning to the ("super") shell immediately](https://serverfault.com/questions/368054/run-an-interactive-bash-subshell-with-initial-commands-without-returning-to-the?rq=1) [2](https://serverfault.com/questions/511065/close-quit-all-screens-with-ssh?rq=1 "Question score (upvotes - downvotes)") [Close/Quit All Screens with SSH](https://serverfault.com/questions/511065/close-quit-all-screens-with-ssh?rq=1) [1](https://serverfault.com/questions/1053877/how-to-use-expect-command-with-run-program-in-replace-for-yes-command?rq=1 "Question score (upvotes - downvotes)") [How to use expect command with .run program in replace for yes command](https://serverfault.com/questions/1053877/how-to-use-expect-command-with-run-program-in-replace-for-yes-command?rq=1) #### [Hot Network Questions](https://stackexchange.com/questions?tab=hot) - [How to expand the macros in tabularray first with \`expand\` key?](https://tex.stackexchange.com/questions/758834/how-to-expand-the-macros-in-tabularray-first-with-expand-key) - [Manga where an Adventurers Guild master tries to convince adventurers to fight an army of monsters](https://scifi.stackexchange.com/questions/303031/manga-where-an-adventurers-guild-master-tries-to-convince-adventurers-to-fight-a) - [Lamentations 2:9 and the silent years between OT and NT](https://hermeneutics.stackexchange.com/questions/114261/lamentations-29-and-the-silent-years-between-ot-and-nt) - [Calculation error when setting up a thumb index with LaTeX3](https://tex.stackexchange.com/questions/758832/calculation-error-when-setting-up-a-thumb-index-with-latex3) - [What can I do to run “Microsoft Picture! Digital Image Pro” on a modern, 64 Bit Windows 11 computer?](https://superuser.com/questions/1934182/what-can-i-do-to-run-microsoft-picture-digital-image-pro-on-a-modern-64-bit) - [How can I tell if an impact damaged a copper pipe fitting?](https://diy.stackexchange.com/questions/328908/how-can-i-tell-if-an-impact-damaged-a-copper-pipe-fitting) - [Can Microsoft ask the "Epstein Windows 7 Key" to be redacted?](https://law.stackexchange.com/questions/114024/can-microsoft-ask-the-epstein-windows-7-key-to-be-redacted) - [Is this consequence of improper paperwork for a prisoner release realistic?](https://law.stackexchange.com/questions/114025/is-this-consequence-of-improper-paperwork-for-a-prisoner-release-realistic) - [Making an expression with the numbers 1 to 20, odd or even](https://puzzling.stackexchange.com/questions/136843/making-an-expression-with-the-numbers-1-to-20-odd-or-even) - [Surfactant removal from carbon](https://chemistry.stackexchange.com/questions/194867/surfactant-removal-from-carbon) - [Do you know this drink?](https://puzzling.stackexchange.com/questions/136848/do-you-know-this-drink) - [Why is the formal semantic definition of quantifiers so complex?](https://math.stackexchange.com/questions/5121671/why-is-the-formal-semantic-definition-of-quantifiers-so-complex) - [Detecting missing pulses / minimum off-time in a fast pulse train](https://electronics.stackexchange.com/questions/764990/detecting-missing-pulses-minimum-off-time-in-a-fast-pulse-train) - [How to interpret a p-value when 0.01 \< p \< 0.05](https://stats.stackexchange.com/questions/674503/how-to-interpret-a-p-value-when-0-01-p-0-05) - [Is the coax cable capacitance hidden when matched?](https://electronics.stackexchange.com/questions/764999/is-the-coax-cable-capacitance-hidden-when-matched) - [Why is running away discouraged?](https://rpg.stackexchange.com/questions/218616/why-is-running-away-discouraged) - [Meaning of “standardized random variable” in multiple choice question](https://stats.stackexchange.com/questions/674511/meaning-of-standardized-random-variable-in-multiple-choice-question) - [How can I create latitude indents (or outdents) on a sphere?](https://blender.stackexchange.com/questions/344761/how-can-i-create-latitude-indents-or-outdents-on-a-sphere) - [Can I just clone the main hard drive and replace it?](https://unix.stackexchange.com/questions/804046/can-i-just-clone-the-main-hard-drive-and-replace-it) - [Are there any popular math books about general topology for a lay audience?](https://mathoverflow.net/questions/507421/are-there-any-popular-math-books-about-general-topology-for-a-lay-audience) - [Recover severely underexposed camera film](https://photo.stackexchange.com/questions/138326/recover-severely-underexposed-camera-film) - [French scifi time travel romance novel, at least 5 years old, that ends in self-sacrifice to stop gendercidal virus](https://scifi.stackexchange.com/questions/303027/french-scifi-time-travel-romance-novel-at-least-5-years-old-that-ends-in-self) - [How can I send data (not commands) over ssh?](https://superuser.com/questions/1934196/how-can-i-send-data-not-commands-over-ssh) - [A Generalization of Andrica Conjecture](https://mathoverflow.net/questions/507481/a-generalization-of-andrica-conjecture) [Question feed](https://serverfault.com/feeds/question/96406 "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://serverfault.com/posts/96406/ivc/1d05?prg=07df089b-1b6b-49fd-b82a-0f81a5c5b36c) lang-bash # Why are you flagging this comment? It contains harassment, bigotry or abuse. This comment attacks a person or group. Learn more in our [Abusive behavior policy](https://serverfault.com/conduct/abusive-behavior). It's unfriendly or unkind. This comment is rude or condescending. Learn more in our [Code of Conduct](https://serverfault.com/conduct/abusive-behavior). Not needed. This comment is not relevant to the post. ``` ``` Enter at least 6 characters Something else. A problem not listed above. Try to be as specific as possible. ``` ``` Enter at least 6 characters Flag comment Cancel You have 0 flags left today # ![Illustration of upvote icon after it is clicked](https://serverfault.com/Content/Img/modal/img-upvote.png?v=fce73bd9724d) # Hang on, you can't upvote just yet. You'll need to complete a few actions and gain 15 reputation points before being able to upvote. **Upvoting** indicates when questions and answers are useful. [What's reputation and how do I get it?](https://stackoverflow.com/help/whats-reputation) Instead, you can save this post to reference later. Save this post for later Not now ##### [Server Fault](https://serverfault.com/) - [Tour](https://serverfault.com/tour) - [Help](https://serverfault.com/help) - [Chat](https://chat.stackexchange.com/?tab=all&sort=active) - [Contact](https://serverfault.com/contact) - [Feedback](https://meta.serverfault.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](http://blog.serverfault.com/?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.1.27.39115
Readable Markdownnull
Shard19 (laksa)
Root Hash4232792808108743419
Unparsed URLcom,serverfault!/questions/96406/kill-a-screen-but-not-all-screens s443