βΉοΈ Skipped - page is already crawled
| Filter | Status | Condition | Details |
|---|---|---|---|
| HTTP status | PASS | download_http_code = 200 | HTTP 200 |
| Age cutoff | PASS | download_stamp > now() - 6 MONTH | 0.7 months ago |
| History drop | PASS | isNull(history_drop_reason) | No drop reason |
| Spam/ban | PASS | fh_dont_index != 1 AND ml_spam_score = 0 | ml_spam_score=0 |
| Canonical | PASS | meta_canonical IS NULL OR = '' OR = src_unparsed | Not set |
| Property | Value |
|---|---|
| URL | https://serverfault.com/questions/1104428/quitting-screen-without-a-prompt |
| Last Crawled | 2026-03-20 08:18:24 (21 days ago) |
| First Indexed | 2022-06-29 16:45:43 (3 years ago) |
| HTTP Status Code | 200 |
| Meta Title | Quitting screen without a prompt - Server Fault |
| Meta Description | null |
| Meta Canonical | null |
| Boilerpipe Text | 1
I would like to exit my active screen session and kill (not detach) the session.
This is done with
CTRL + a
and then
k
, however screen then then prompts you "Really kill this window [y/n]" and you have to respond with
y
to kill the session.
Is there a way to do this without having to confirm with
y
?
Note:
Screen is being used to connect to a physical console TTY session so I cannot just type "exit" to kill the session. (ex:
screen /dev/ttyUSB1 9600
)
asked
Jun 29, 2022 at 16:39
2
3
CTRL + A
followed by
:
(to enter command line mode) and then
kill
appears to kill the current screen window without further prompting.
If you add something like this to your
.screenrc
you can do
CTRL + A
followed by
E
and then hit enter.
bind e colon kill
You may in fact be able to get that to auto-submit, if you change the line like this:
bind e colon "kill\015"
Where
\015
is the octal representation of CR (carriage return).
You may still get the
Window X (...title...) killed
notification but the screen window will be gone without further keys needing to be pressed.
answered
Jun 30, 2022 at 2:33
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://serverfault.com/questions/1104428/quitting-screen-without-a-prompt#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=site&host=serverfault.com)
- [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%2F1104428%2Fquitting-screen-without-a-prompt) or [log in](https://serverfault.com/users/login?ssrc=site_switcher&returnurl=https%3A%2F%2Fserverfault.com%2Fquestions%2F1104428%2Fquitting-screen-without-a-prompt) 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%2F1104428%2Fquitting-screen-without-a-prompt)
4. [Sign up](https://serverfault.com/users/signup?ssrc=head&returnurl=https%3A%2F%2Fserverfault.com%2Fquestions%2F1104428%2Fquitting-screen-without-a-prompt)
[](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/)
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)
# [Quitting screen without a prompt](https://serverfault.com/questions/1104428/quitting-screen-without-a-prompt)
[Ask Question](https://serverfault.com/questions/ask)
Asked
3 years, 8 months ago
Modified [3 years, 8 months ago](https://serverfault.com/questions/1104428/quitting-screen-without-a-prompt?lastactivity "2022-07-01 18:24:42Z")
Viewed 941 times
1
I would like to exit my active screen session and kill (not detach) the session.
This is done with `CTRL + a` and then `k`, however screen then then prompts you "Really kill this window \[y/n\]" and you have to respond with `y` to kill the session.
Is there a way to do this without having to confirm with `y` ?
***
**Note:** Screen is being used to connect to a physical console TTY session so I cannot just type "exit" to kill the session. (ex: `screen /dev/ttyUSB1 9600`)
- [gnu-screen](https://serverfault.com/questions/tagged/gnu-screen "show questions tagged 'gnu-screen'")
[Share](https://serverfault.com/q/1104428 "Short permalink to this question")
[Improve this question](https://serverfault.com/posts/1104428/edit)
Follow
[edited Jun 29, 2022 at 21:08](https://serverfault.com/posts/1104428/revisions "show all edits to this post")
asked Jun 29, 2022 at 16:39
[](https://serverfault.com/users/583269/rino-bino)
[Rino Bino](https://serverfault.com/users/583269/rino-bino)
72222 gold badges1313 silver badges3535 bronze badges
2
- just type `exit`
Esther
β [Esther](https://serverfault.com/users/964260/esther "101 reputation")
2022-06-29 16:47:55 +00:00
Commented Jun 29, 2022 at 16:47
- That doesn't apply to my situation, I'm using screen to access a physical ttyUSB console session. There is no "exit" it's just sitting at a login prompt as-if I'm physically at the machine.
Rino Bino
β [Rino Bino](https://serverfault.com/users/583269/rino-bino "722 reputation")
2022-06-29 17:23:46 +00:00
Commented Jun 29, 2022 at 17:23
[Add a comment](https://serverfault.com/questions/1104428/quitting-screen-without-a-prompt "Use comments to ask for more information or suggest improvements. Avoid answering questions in comments.") \|
## 1 Answer 1
Sorted by:
[Reset to default](https://serverfault.com/questions/1104428/quitting-screen-without-a-prompt?answertab=scoredesc#tab-top)
3
`CTRL + A` followed by `:` (to enter command line mode) and then `kill` appears to kill the current screen window without further prompting.
If you add something like this to your `.screenrc` you can do `CTRL + A` followed by `E` and then hit enter.
```
bind e colon kill
```
You may in fact be able to get that to auto-submit, if you change the line like this:
```
bind e colon "kill\015"
```
Where `\015` is the octal representation of CR (carriage return). You may still get the `Window X (...title...) killed` notification but the screen window will be gone without further keys needing to be pressed.
[Share](https://serverfault.com/a/1104462 "Short permalink to this answer")
[Improve this answer](https://serverfault.com/posts/1104462/edit)
Follow
[edited Jul 1, 2022 at 18:24](https://serverfault.com/posts/1104462/revisions "show all edits to this post")
answered Jun 30, 2022 at 2:33
[](https://serverfault.com/users/972294/erwin)
[Erwin](https://serverfault.com/users/972294/erwin)
14633 bronze badges
1
- Great thorough answer, and it works... appreciated.
Rino Bino
β [Rino Bino](https://serverfault.com/users/583269/rino-bino "722 reputation")
2022-07-01 19:45:34 +00:00
Commented Jul 1, 2022 at 19:45
[Add a comment](https://serverfault.com/questions/1104428/quitting-screen-without-a-prompt "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%2F1104428) 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
- [gnu-screen](https://serverfault.com/questions/tagged/gnu-screen "show questions tagged 'gnu-screen'")
See similar questions with these tags.
- The Overflow Blog
- [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/)
- [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/)
- Featured on Meta
- [Logo updates to Stack Overflow's visual identity](https://meta.stackexchange.com/questions/417394/logo-updates-to-stack-overflows-visual-identity)
#### Related
[285](https://serverfault.com/questions/24425/can-i-nohup-screen-an-already-started-process "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)
[288](https://serverfault.com/questions/55880/moving-an-already-running-process-to-screen "Question score (upvotes - downvotes)")
[Moving an already-running process to Screen](https://serverfault.com/questions/55880/moving-an-already-running-process-to-screen)
[38](https://serverfault.com/questions/104668/create-screen-and-run-command-without-attaching "Question score (upvotes - downvotes)")
[Create screen and run command without attaching](https://serverfault.com/questions/104668/create-screen-and-run-command-without-attaching)
[15](https://serverfault.com/questions/155851/run-gnu-screen-from-script "Question score (upvotes - downvotes)")
[Run (GNU) Screen from script](https://serverfault.com/questions/155851/run-gnu-screen-from-script)
[106](https://serverfault.com/questions/194597/how-to-reload-screenrc-without-restarting-screen "Question score (upvotes - downvotes)")
[How to reload screenrc without restarting screen?](https://serverfault.com/questions/194597/how-to-reload-screenrc-without-restarting-screen)
[0](https://serverfault.com/questions/380536/how-what-rc-level-to-use-to-start-a-screen-with-display-attached "Question score (upvotes - downvotes)")
[How/What RC level to use to start a screen with Display attached.](https://serverfault.com/questions/380536/how-what-rc-level-to-use-to-start-a-screen-with-display-attached)
[0](https://serverfault.com/questions/542276/clean-up-orphaned-screen-sessions-for-defunct-users "Question score (upvotes - downvotes)")
[Clean up orphaned screen sessions for defunct users](https://serverfault.com/questions/542276/clean-up-orphaned-screen-sessions-for-defunct-users)
[7](https://serverfault.com/questions/580468/cygwin-screen-and-ssh-utmp-slot-not-found-not-removed "Question score (upvotes - downvotes)")
[Cygwin Screen and SSH: Utmp slot not found -\> not removed](https://serverfault.com/questions/580468/cygwin-screen-and-ssh-utmp-slot-not-found-not-removed)
[0](https://serverfault.com/questions/838668/killing-screen-session-and-starting-a-new-one-cron "Question score (upvotes - downvotes)")
[Killing screen session and starting a new one, cron](https://serverfault.com/questions/838668/killing-screen-session-and-starting-a-new-one-cron)
[1](https://serverfault.com/questions/933154/can-gnu-screen-leave-you-at-shell-prompt-after-command-instead-of-exiting-the-tt "Question score (upvotes - downvotes)")
[Can GNU screen leave you at shell prompt after command instead of exiting the TTY?](https://serverfault.com/questions/933154/can-gnu-screen-leave-you-at-shell-prompt-after-command-instead-of-exiting-the-tt)
#### [Hot Network Questions](https://stackexchange.com/questions?tab=hot)
- [Capacitance of a film capacitor](https://electronics.stackexchange.com/questions/767152/capacitance-of-a-film-capacitor)
- [What is the temperature of light?](https://physics.stackexchange.com/questions/870313/what-is-the-temperature-of-light)
- [Colored rectangle box around title with text side by side](https://tex.stackexchange.com/questions/761048/colored-rectangle-box-around-title-with-text-side-by-side)
- [Is there a mapping from a free group to a surface group that preserves trace equivalence?](https://mathoverflow.net/questions/509293/is-there-a-mapping-from-a-free-group-to-a-surface-group-that-preserves-trace-equ)
- [If two elements are trace equivalent in a surface group are they trace equivalent in a free group?](https://mathoverflow.net/questions/509214/if-two-elements-are-trace-equivalent-in-a-surface-group-are-they-trace-equivalen)
- [Is it okay to ask AI to re-phrase your cover letter?](https://academia.stackexchange.com/questions/226216/is-it-okay-to-ask-ai-to-re-phrase-your-cover-letter)
- [How can I prepare to translate medieval Latin works in logic?](https://philosophy.stackexchange.com/questions/137162/how-can-i-prepare-to-translate-medieval-latin-works-in-logic)
- [Why we can have fields without sources?](https://physics.stackexchange.com/questions/870201/why-we-can-have-fields-without-sources)
- [What are the downsides with using an SD card for primary storage on a x86 laptop?](https://superuser.com/questions/1935919/what-are-the-downsides-with-using-an-sd-card-for-primary-storage-on-a-x86-laptop)
- [Who killed whom and why in the SL-9 incident?](https://gaming.stackexchange.com/questions/418208/who-killed-whom-and-why-in-the-sl-9-incident)
- [Arranging squares on a cube in isometric view](https://puzzling.stackexchange.com/questions/137437/arranging-squares-on-a-cube-in-isometric-view)
- [Trying to find poem by a black female author quoting "Walk on the wild side"](https://literature.stackexchange.com/questions/31787/trying-to-find-poem-by-a-black-female-author-quoting-walk-on-the-wild-side)
- [How long should pruning take?](https://bitcoin.stackexchange.com/questions/130606/how-long-should-pruning-take)
- [Is using AI (ChatGPT, Claude, etc.) to understand research papers a bad idea?](https://academia.stackexchange.com/questions/226226/is-using-ai-chatgpt-claude-etc-to-understand-research-papers-a-bad-idea)
- [Accessible PDF, declaring an artifact for included pdf pages](https://tex.stackexchange.com/questions/761035/accessible-pdf-declaring-an-artifact-for-included-pdf-pages)
- [Multiple image apps (Gwenview, GIMP, gThumb) crashes when pasting/open image after libexiv2 upgrade](https://askubuntu.com/questions/1564943/multiple-image-apps-gwenview-gimp-gthumb-crashes-when-pasting-open-image-aft)
- [What is the history of name changes for D\&D 5.5e / D\&D 2024?](https://rpg.stackexchange.com/questions/218950/what-is-the-history-of-name-changes-for-dd-5-5e-dd-2024)
- [Novel about the conflict between science/technology and the arts/humanities](https://scifi.stackexchange.com/questions/303735/novel-about-the-conflict-between-science-technology-and-the-arts-humanities)
- [Rulers, bots, cards, spots. Which country am I from?](https://puzzling.stackexchange.com/questions/137440/rulers-bots-cards-spots-which-country-am-i-from)
- [What year should be used when citing software without specifying a version?](https://academia.stackexchange.com/questions/226238/what-year-should-be-used-when-citing-software-without-specifying-a-version)
- [Steampunk lightbulb without electricity](https://worldbuilding.stackexchange.com/questions/272922/steampunk-lightbulb-without-electricity)
- [Weird behavior of \`Message\` and \`Echo\`?](https://mathematica.stackexchange.com/questions/319050/weird-behavior-of-message-and-echo)
- [Count valid programs in ()](https://codegolf.stackexchange.com/questions/287577/count-valid-programs-in)
- [Is an operator with only point spectrum and this property normal?](https://math.stackexchange.com/questions/5129366/is-an-operator-with-only-point-spectrum-and-this-property-normal)
[more hot questions](https://serverfault.com/questions/1104428/quitting-screen-without-a-prompt)
[Question feed](https://serverfault.com/feeds/question/1104428 "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.

##### [Server Fault](https://serverfault.com/)
- [Tour](https://serverfault.com/tour)
- [Help](https://serverfault.com/help)
- [Chat](https://chat.stackexchange.com/?tab=site&host=serverfault.com)
- [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.3.19.41259 |
| Readable Markdown | 1
I would like to exit my active screen session and kill (not detach) the session.
This is done with `CTRL + a` and then `k`, however screen then then prompts you "Really kill this window \[y/n\]" and you have to respond with `y` to kill the session.
Is there a way to do this without having to confirm with `y` ?
***
**Note:** Screen is being used to connect to a physical console TTY session so I cannot just type "exit" to kill the session. (ex: `screen /dev/ttyUSB1 9600`)
asked Jun 29, 2022 at 16:39
[](https://serverfault.com/users/583269/rino-bino)
2
3
`CTRL + A` followed by `:` (to enter command line mode) and then `kill` appears to kill the current screen window without further prompting.
If you add something like this to your `.screenrc` you can do `CTRL + A` followed by `E` and then hit enter.
```
bind e colon kill
```
You may in fact be able to get that to auto-submit, if you change the line like this:
```
bind e colon "kill\015"
```
Where `\015` is the octal representation of CR (carriage return). You may still get the `Window X (...title...) killed` notification but the screen window will be gone without further keys needing to be pressed.
answered Jun 30, 2022 at 2:33
[](https://serverfault.com/users/972294/erwin)
1
## You must [log in](https://serverfault.com/users/login?ssrc=question_page&returnurl=https%3A%2F%2Fserverfault.com%2Fquestions%2F1104428) 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
See similar questions with these tags. |
| Shard | 19 (laksa) |
| Root Hash | 4232792808108743419 |
| Unparsed URL | com,serverfault!/questions/1104428/quitting-screen-without-a-prompt s443 |