ℹ️ 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 | 5.4 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://stackoverflow.com/questions/1509677/kill-detached-screen-session |
| Last Crawled | 2025-10-29 20:35:27 (5 months ago) |
| First Indexed | 2015-07-15 12:05:46 (10 years ago) |
| HTTP Status Code | 200 |
| Meta Title | linux - Kill detached screen session - Stack Overflow |
| Meta Description | null |
| Meta Canonical | null |
| Boilerpipe Text | Alternatively, while in your screen session all you have to do is type exit This will kill the shell session initiated by the screen, which effectively terminates the screen session you are on. No need to bother with screen session id, etc. |
| Markdown | # 
By clicking “Sign up”, you agree to our [terms of service](https://stackoverflow.com/legal/terms-of-service/public) and acknowledge you have read our [privacy policy](https://stackoverflow.com/legal/privacy-policy).
# OR
Already have an account? [Log in](https://stackoverflow.com/users/login)
[Skip to main content](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#content)
[Stack Overflow](https://stackoverflow.com/)
1. [About](https://stackoverflow.co/)
2. Products
3. [For Teams](https://stackoverflow.co/teams/)
1. [Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers](https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-for-teams)
2. [Advertising Reach devs & technologists worldwide about your product, service or employer brand](https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-advertising)
3. [Knowledge Solutions Data licensing offering for businesses to build and improve AI tools and models](https://stackoverflow.co/api-solutions/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-api)
4. [Labs The future of collective knowledge sharing](https://stackoverflow.co/labs/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=labs)
5. [About the company](https://stackoverflow.co/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=about-the-company) [Visit the blog](https://stackoverflow.blog/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=blog)
1. ### [current community](https://stackoverflow.com/)
- [Stack Overflow](https://stackoverflow.com/)
[help](https://stackoverflow.com/help) [chat](https://chat.stackoverflow.com/?tab=explore)
- [Meta Stack Overflow](https://meta.stackoverflow.com/)
### your communities
[Sign up](https://stackoverflow.com/users/signup?ssrc=site_switcher&returnurl=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F1509677%2Fkill-detached-screen-session) or [log in](https://stackoverflow.com/users/login?ssrc=site_switcher&returnurl=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F1509677%2Fkill-detached-screen-session) to customize your list.
### [more stack exchange communities](https://stackexchange.com/sites)
[company blog](https://stackoverflow.blog/)
2. [Log in](https://stackoverflow.com/users/login?ssrc=head&returnurl=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F1509677%2Fkill-detached-screen-session)
3. [Sign up](https://stackoverflow.com/users/signup?ssrc=head&returnurl=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F1509677%2Fkill-detached-screen-session)
# Let's set up your homepage Select a few topics you're interested in:
python
javascript
c\#
reactjs
java
android
html
flutter
c++
node.js
typescript
css
r
php
angular
next.js
spring-boot
machine-learning
sql
excel
ios
azure
docker
Or search from our full list:
- javascript
- python
- java
- c\#
- php
- android
- html
- jquery
- c++
- css
- ios
- sql
- mysql
- r
- reactjs
- node.js
- arrays
- c
- asp.net
- json
- python-3.x
- .net
- ruby-on-rails
- sql-server
- swift
- django
- angular
- objective-c
- excel
- pandas
- angularjs
- regex
- typescript
- ruby
- linux
- ajax
- iphone
- vba
- xml
- laravel
- spring
- asp.net-mvc
- database
- wordpress
- string
- flutter
- postgresql
- mongodb
- wpf
- windows
- xcode
- amazon-web-services
- bash
- git
- oracle-database
- spring-boot
- dataframe
- azure
- firebase
- list
- multithreading
- docker
- vb.net
- react-native
- eclipse
- algorithm
- powershell
- macos
- visual-studio
- numpy
- image
- forms
- scala
- function
- vue.js
- performance
- twitter-bootstrap
- selenium
- winforms
- kotlin
- loops
- express
- dart
- hibernate
- sqlite
- matlab
- python-2.7
- shell
- rest
- apache
- entity-framework
- android-studio
- csv
- maven
- linq
- qt
- dictionary
- unit-testing
- asp.net-core
- facebook
- apache-spark
- tensorflow
- file
- swing
- class
- unity-game-engine
- sorting
- date
- authentication
- go
- symfony
- t-sql
- opencv
- matplotlib
- .htaccess
- google-chrome
- for-loop
- datetime
- codeigniter
- perl
- http
- validation
- sockets
- google-maps
- object
- uitableview
- xaml
- oop
- visual-studio-code
- if-statement
- cordova
- ubuntu
- web-services
- email
- android-layout
- github
- spring-mvc
- elasticsearch
- kubernetes
- selenium-webdriver
- ms-access
- ggplot2
- user-interface
- parsing
- pointers
- google-sheets
- c++11
- security
- machine-learning
- google-apps-script
- ruby-on-rails-3
- templates
- flask
- nginx
- variables
- exception
- sql-server-2008
- gradle
- debugging
- tkinter
- delphi
- listview
- jpa
- asynchronous
- web-scraping
- haskell
- pdf
- jsp
- ssl
- amazon-s3
- google-cloud-platform
- jenkins
- testing
- xamarin
- wcf
- batch-file
- generics
- npm
- ionic-framework
- network-programming
- unix
- recursion
- google-app-engine
- mongoose
- visual-studio-2010
- .net-core
- android-fragments
- assembly
- animation
- math
- svg
- session
- rust
- intellij-idea
- hadoop
- curl
- next.js
- join
- winapi
- django-models
- laravel-5
- url
- heroku
- http-redirect
- tomcat
- google-cloud-firestore
- inheritance
- webpack
- image-processing
- gcc
- keras
- swiftui
- asp.net-mvc-4
- logging
- dom
- matrix
- pyspark
- actionscript-3
- button
- post
- optimization
- firebase-realtime-database
- web
- jquery-ui
- cocoa
- xpath
- iis
- d3.js
- javafx
- firefox
- xslt
- internet-explorer
- caching
- select
- asp.net-mvc-3
- opengl
- events
- asp.net-web-api
- plot
- dplyr
- encryption
- magento
- stored-procedures
- search
- amazon-ec2
- ruby-on-rails-4
- memory
- canvas
- audio
- multidimensional-array
- random
- jsf
- vector
- redux
- cookies
- input
- facebook-graph-api
- flash
- indexing
- xamarin.forms
- arraylist
- ipad
- cocoa-touch
- data-structures
- video
- azure-devops
- model-view-controller
- apache-kafka
- serialization
- jdbc
- woocommerce
- razor
- routes
- awk
- servlets
- mod-rewrite
- excel-formula
- beautifulsoup
- filter
- docker-compose
- iframe
- aws-lambda
- design-patterns
- text
- visual-c++
- django-rest-framework
- cakephp
- mobile
- android-intent
- struct
- react-hooks
- methods
- groovy
- mvvm
- ssh
- lambda
- checkbox
- time
- ecmascript-6
- grails
- google-chrome-extension
- installation
- cmake
- sharepoint
- shiny
- spring-security
- jakarta-ee
- plsql
- android-recyclerview
- core-data
- types
- sed
- meteor
- android-activity
- activerecord
- bootstrap-4
- websocket
- graph
- replace
- group-by
- scikit-learn
- vim
- file-upload
- junit
- boost
- memory-management
- sass
- import
- async-await
- deep-learning
- error-handling
- eloquent
- dynamic
- soap
- dependency-injection
- silverlight
- layout
- apache-spark-sql
- charts
- deployment
- browser
- gridview
- svn
- while-loop
- google-bigquery
- vuejs2
- highcharts
- dll
- ffmpeg
- view
- foreach
- makefile
- plugins
- redis
- c\#-4.0
- reporting-services
- jupyter-notebook
- unicode
- merge
- reflection
- https
- server
- google-maps-api-3
- twitter
- oauth-2.0
- extjs
- terminal
- axios
- pip
- split
- cmd
- pytorch
- encoding
- django-views
- collections
- database-design
- hash
- netbeans
- automation
- data-binding
- ember.js
- build
- tcp
- pdo
- sqlalchemy
- apache-flex
- mysqli
- entity-framework-core
- concurrency
- command-line
- spring-data-jpa
- printing
- react-redux
- java-8
- lua
- html-table
- ansible
- neo4j
- jestjs
- service
- parameters
- enums
- material-ui
- flexbox
- module
- promise
- visual-studio-2012
- outlook
- firebase-authentication
- web-applications
- webview
- uwp
- jquery-mobile
- utf-8
- datatable
- python-requests
- parallel-processing
- colors
- drop-down-menu
- scipy
- scroll
- tfs
- hive
- count
- syntax
- ms-word
- twitter-bootstrap-3
- ssis
- fonts
- rxjs
- constructor
- google-analytics
- file-io
- three.js
- paypal
- powerbi
- graphql
- cassandra
- discord
- graphics
- compiler-errors
- gwt
- socket.io
- react-router
- solr
- backbone.js
- url-rewriting
- memory-leaks
- datatables
- nlp
- terraform
- oauth
- datagridview
- drupal
- zend-framework
- oracle11g
- knockout.js
- triggers
- neural-network
- interface
- django-forms
- angular-material
- casting
- jmeter
- google-api
- linked-list
- path
- timer
- arduino
- django-templates
- proxy
- orm
- directory
- windows-phone-7
- parse-platform
- visual-studio-2015
- cron
- conditional-statements
- push-notification
- functional-programming
- primefaces
- pagination
- model
- jar
- xamarin.android
- hyperlink
- uiview
- visual-studio-2013
- vbscript
- google-cloud-functions
- gitlab
- azure-active-directory
- jwt
- download
- swift3
- sql-server-2005
- process
- configuration
- rspec
- pygame
- properties
- combobox
- callback
- windows-phone-8
- linux-kernel
- safari
- scrapy
- permissions
- emacs
- scripting
- clojure
- raspberry-pi
- x86
- scope
- io
- expo
- azure-functions
- compilation
- responsive-design
- mongodb-query
- nhibernate
- angularjs-directive
- request
- bluetooth
- reference
- binding
- dns
- architecture
- 3d
- playframework
- pyqt
- version-control
- discord.js
- doctrine-orm
- package
- f\#
- rubygems
- get
- sql-server-2012
- autocomplete
- tree
- openssl
- datepicker
- kendo-ui
- jackson
- yii
- controller
- grep
- nested
- xamarin.ios
- static
- null
- statistics
- transactions
- datagrid
- active-directory
- dockerfile
- uiviewcontroller
- webforms
- discord.py
- phpmyadmin
- sas
- computer-vision
- notifications
- duplicates
- mocking
- youtube
- pycharm
- yaml
- nullpointerexception
- menu
- blazor
- sum
- plotly
- bitmap
- asp.net-mvc-5
- visual-studio-2008
- yii2
- floating-point
- electron
- css-selectors
- stl
- jsf-2
- android-listview
- time-series
- cryptography
- ant
- hashmap
- character-encoding
- stream
- msbuild
- asp.net-core-mvc
- sdk
- google-drive-api
- jboss
- selenium-chromedriver
- joomla
- devise
- cors
- navigation
- anaconda
- cuda
- background
- frontend
- multiprocessing
- binary
- pyqt5
- camera
- iterator
- linq-to-sql
- mariadb
- onclick
- android-jetpack-compose
- ios7
- microsoft-graph-api
- rabbitmq
- android-asynctask
- tabs
- laravel-4
- amazon-dynamodb
- environment-variables
- insert
- uicollectionview
- linker
- xsd
- coldfusion
- console
- continuous-integration
- upload
- textview
- ftp
- opengl-es
- macros
- operating-system
- mockito
- localization
- formatting
- xml-parsing
- vuejs3
- json.net
- type-conversion
- data.table
- kivy
- timestamp
- integer
- calendar
- segmentation-fault
- android-ndk
- prolog
- drag-and-drop
- char
- crash
- jasmine
- dependencies
- automated-tests
- geometry
- azure-pipelines
- android-gradle-plugin
- itext
- fortran
- sprite-kit
- header
- mfc
- firebase-cloud-messaging
- attributes
- nosql
- format
- nuxt.js
- odoo
- db2
- jquery-plugins
- event-handling
- jenkins-pipeline
- julia
- nestjs
- leaflet
- annotations
- flutter-layout
- keyboard
- postman
- textbox
- arm
- visual-studio-2017
- gulp
- stripe-payments
- libgdx
- synchronization
- timezone
- uikit
- azure-web-app-service
- dom-events
- xampp
- wso2
- crystal-reports
- namespaces
- android-emulator
- swagger
- aggregation-framework
- uiscrollview
- jvm
- google-sheets-formula
- sequelize.js
- chart.js
- com
- snowflake-cloud-data-platform
- subprocess
- geolocation
- webdriver
- html5-canvas
- garbage-collection
- centos
- dialog
- sql-update
- widget
- numbers
- concatenation
- qml
- set
- tuples
- java-stream
- mapreduce
- smtp
- ionic2
- windows-10
- rotation
- android-edittext
- modal-dialog
- spring-data
- nuget
- doctrine
- radio-button
- http-headers
- grid
- sonarqube
- lucene
- xmlhttprequest
- listbox
- switch-statement
- initialization
- internationalization
- components
- apache-camel
- boolean
- google-play
- serial-port
- gdb
- ios5
- ldap
- return
- youtube-api
- pivot
- eclipse-plugin
- latex
- frameworks
- tags
- containers
- github-actions
- c++17
- subquery
- dataset
- asp-classic
- foreign-keys
- label
- embedded
- uinavigationcontroller
- copy
- delegates
- struts2
- google-cloud-storage
- migration
- protractor
- base64
- queue
- find
- uibutton
- sql-server-2008-r2
- arguments
- composer-php
- append
- jaxb
- stack
- zip
- tailwind-css
- cucumber
- autolayout
- ide
- entity-framework-6
- iteration
- popup
- r-markdown
- windows-7
- airflow
- vb6
- g++
- ssl-certificate
- hover
- clang
- jqgrid
- range
- gmail
Next
You’ll be prompted to create an account to view your personalized homepage.
1. 1. [Home](https://stackoverflow.com/)
2. [Questions](https://stackoverflow.com/questions)
3. [AI Assist Labs](https://stackoverflow.ai/)
4. [Tags](https://stackoverflow.com/tags)
5. [Challenges](https://stackoverflow.com/beta/challenges)
6. [Chat](https://chat.stackoverflow.com/rooms/259507/stack-overflow-lobby)
7. [Articles](https://stackoverflow.blog/contributed?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=so-blog&utm_content=experiment-articles)
8. [Users](https://stackoverflow.com/users)
9. [Companies](https://stackoverflow.com/jobs/companies?so_medium=stackoverflow&so_source=SiteNav)
10. [Collectives]()
11. Communities for your favorite technologies. [Explore all Collectives](https://stackoverflow.com/collectives-all)
2. Teams

Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
[Try Teams for free](https://stackoverflowteams.com/teams/create/free/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) [Explore Teams](https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams)
3. [Teams]()
4. Ask questions, find answers and collaborate at work with Stack Overflow for Teams. [Explore Teams](https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams-compact)
##### Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
[Learn more about Collectives](https://stackoverflow.com/collectives)
**Teams**
Q\&A for work
Connect and share knowledge within a single location that is structured and easy to search.
[Learn more about Teams](https://stackoverflow.co/teams/)
# 
# 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
# 
# Thanks for your vote! You now have 5 free votes weekly.
Free votes
- count toward the total vote score
- does not give reputation to the author
Continue to help good content that is interesting, well-researched, and useful, rise to the top! To gain full voting privileges, [earn reputation](https://stackoverflow.com/help/whats-reputation).
Got it\!
Go to help center to learn more
# [Kill detached screen session \[closed\]](https://stackoverflow.com/questions/1509677/kill-detached-screen-session)
[Ask Question](https://stackoverflow.com/questions/ask)
Asked
16 years ago
Modified [6 years, 5 months ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session?lastactivity "2019-04-16 19:41:43Z")
Viewed 2.1m times
863
votes
Save this question.
Show activity on this post.
**Closed.** This question is [off-topic](https://stackoverflow.com/help/closed-questions). It is not currently accepting answers.
Closed 12 years ago.
**Locked**. This question and its answers are [locked](https://stackoverflow.com/help/locked-posts) because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions.
I learned from somewhere a detached screen can be killed by
```
screen -X -S [session # you want to kill] kill
```
where \[session \# you want to kill\] can be gotten from
```
screen -ls
```
But this doesn't work. Anything wrong? What's the correct way?
- [linux](https://stackoverflow.com/questions/tagged/linux "show questions tagged 'linux'")
- [kill](https://stackoverflow.com/questions/tagged/kill "show questions tagged 'kill'")
- [gnu-screen](https://stackoverflow.com/questions/tagged/gnu-screen "show questions tagged 'gnu-screen'")
[Share](https://stackoverflow.com/q/1509677 "Short permalink to this question")
Share a link to this question
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")
[edited Apr 13, 2019 at 18:49](https://stackoverflow.com/posts/1509677/revisions "show all edits to this post")
[](https://stackoverflow.com/users/3266847/benjamin-w)
[Benjamin W.](https://stackoverflow.com/users/3266847/benjamin-w)
53\.8k1919 gold badges135135 silver badges136136 bronze badges
asked Oct 2, 2009 at 13:58
[](https://stackoverflow.com/users/156458/tim)
[Tim](https://stackoverflow.com/users/156458/tim)Tim
101k152152 gold badges409409 silver badges651651 bronze badges
5
- 25
"somewhere" is not always a good source of information. Try "man screen".
innaM
– [innaM](https://stackoverflow.com/users/7498/innam "48,029 reputation")
2009-10-02 14:08:22 +00:00
[Commented Oct 2, 2009 at 14:08](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment1363457_1509677)
- 27
The correct command is `screen -S sessionname -p 0 -X quit`
jimmetry
– [jimmetry](https://stackoverflow.com/users/1837729/jimmetry "2,239 reputation")
2013-08-29 02:27:23 +00:00
[Commented Aug 29, 2013 at 2:27](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment27201964_1509677)
- killall -\# screen \[\# = number of screens you want to kill\]
CArnold
– [CArnold](https://stackoverflow.com/users/2440216/carnold "535 reputation")
2014-08-29 14:14:13 +00:00
[Commented Aug 29, 2014 at 14:14](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment39933376_1509677)
- I simply use **exit**
TPArrow
– [TPArrow](https://stackoverflow.com/users/2682273/tparrow "1,624 reputation")
2018-02-16 13:15:02 +00:00
[Commented Feb 16, 2018 at 13:15](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment84658793_1509677)
- CTRL + D when in screen is the easiest command.
Don King
– [Don King](https://stackoverflow.com/users/3816940/don-king "301 reputation")
2019-03-28 17:50:31 +00:00
[Commented Mar 28, 2019 at 17:50](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment97528470_1509677)
Comments disabled on deleted / locked posts / reviews \|
## 11 Answers 11
Sorted by:
[Reset to default](https://stackoverflow.com/questions/1509677/kill-detached-screen-session?answertab=scoredesc#tab-top)
1265
votes
Save this answer.
Show activity on this post.
"kill" will only kill one screen window. To "kill" the complete session, use `quit`.
### Example
```
$ screen -X -S [session # you want to kill] quit
```
For dead sessions use: \$ screen -wipe
[Share](https://stackoverflow.com/a/1509764 "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")
[edited Apr 16, 2019 at 19:41](https://stackoverflow.com/posts/1509764/revisions "show all edits to this post")
[](https://stackoverflow.com/users/-1/community)
[Community](https://stackoverflow.com/users/-1/community)Bot
111 silver badge
answered Oct 2, 2009 at 14:10
[](https://stackoverflow.com/users/7498/innam)
[innaM](https://stackoverflow.com/users/7498/innam)innaM
48k55 gold badges7272 silver badges8888 bronze badges
Sign up to request clarification or add additional context in comments.
## 7 Comments
Add a comment
[](https://stackoverflow.com/users/1005250/mzalazar)
mzalazar
[mzalazar](https://stackoverflow.com/users/1005250/mzalazar)
[Over a year ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment20174571_1509764)
type 'exit' (without the quotes) in ubuntu :P
2013-01-23T12:48:48.717Z+00:00
112
Reply
- Copy link
[](https://stackoverflow.com/users/1365918/kapad)
kapad
[kapad](https://stackoverflow.com/users/1365918/kapad)
[Over a year ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment26893631_1509764)
`exit` works but needs to be typed into each screen that was opened. `quit` does not even work
2013-08-19T22:35:41.353Z+00:00
16
Reply
- Copy link
[](https://stackoverflow.com/users/516513/eduard)
Eduard
[Eduard](https://stackoverflow.com/users/516513/eduard)
[Over a year ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment38071684_1509764)
@kapad actually quit works if you write it inline -X -S pid/sockname quit
2014-07-04T15:24:22.38Z+00:00
4
Reply
- Copy link
[](https://stackoverflow.com/users/1688206/michel)
Michel
[Michel](https://stackoverflow.com/users/1688206/michel)
[Over a year ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment49124637_1509764)
on OSX entering `screen -X quit` on any terminal terminates all active sessions
2015-05-29T09:07:31.89Z+00:00
20
Reply
- Copy link
[](https://stackoverflow.com/users/8735388/yi-xin)
Yi Xin
[Yi Xin](https://stackoverflow.com/users/8735388/yi-xin)
[Over a year ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment82309674_1509764)
Ctrl + D also works
2017-12-06T13:28:04.4Z+00:00
5
Reply
- Copy link
Add a comment
\|
Show 2 more comments
497
votes
Save this answer.
Show activity on this post.
You can kill a detached session which is not responding within the screen session by doing the following.
1. Type `screen -list` to identify the detached screen session.
```
~$ screen -list
There are screens on:
20751.Melvin_Peter_V42 (Detached)
```
Note: `20751.Melvin_Peter_V42` is your session id.
2. Get attached to the detached screen session
```
screen -r 20751.Melvin_Peter_V42
```
3. Once connected to the session press `Ctrl` + `A` then type `:quit`
[Share](https://stackoverflow.com/a/2308595 "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")
[edited Mar 3, 2014 at 19:47](https://stackoverflow.com/posts/2308595/revisions "show all edits to this post")
[](https://stackoverflow.com/users/2456263/0xcaff)
[0xcaff](https://stackoverflow.com/users/2456263/0xcaff)
13\.8k55 gold badges5252 silver badges5757 bronze badges
answered Feb 22, 2010 at 3:15
[](https://stackoverflow.com/users/278417/melvin-peter)
[Melvin Peter](https://stackoverflow.com/users/278417/melvin-peter)Melvin Peter
4,97922 gold badges1717 silver badges44 bronze badges
## 4 Comments
Add a comment
[](https://stackoverflow.com/users/395804/gal-bracha)
Gal Bracha
[Gal Bracha](https://stackoverflow.com/users/395804/gal-bracha)
[Over a year ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment25524677_2308595)
you can just use screen -r 20751 without the full name
2013-07-09T12:47:38.38Z+00:00
20
Reply
- Copy link
[](https://stackoverflow.com/users/1297812/laffuste)
laffuste
[laffuste](https://stackoverflow.com/users/1297812/laffuste)
[Over a year ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment29772450_2308595)
or: Ctrl + a, k
2013-11-15T08:40:22.427Z+00:00
53
Reply
- Copy link
[](https://stackoverflow.com/users/3604745/hack-r)
Hack-R
[Hack-R](https://stackoverflow.com/users/3604745/hack-r)
[Over a year ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment46557632_2308595)
@laffuste 's comment worked for me, but `quit` and `:quit` lead to `command not found` on my remote Linux server (perhaps differences between versions of the OS or screen are to blame)
2015-03-20T15:05:25.36Z+00:00
0
Reply
- Copy link
[](https://stackoverflow.com/users/3364687/pkapka)
pkapka
[pkapka](https://stackoverflow.com/users/3364687/pkapka)
[Over a year ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment70458698_2308595)
once attached to the screen, `exit` also works
2017-01-13T07:17:52.513Z+00:00
0
Reply
- Copy link
Add a comment
145
votes
Save this answer.
Show activity on this post.
**List screens:**
```
screen -list
```
**Output:**
```
There is a screen on:
23536.pts-0.wdzee (10/04/2012 08:40:45 AM) (Detached)
1 Socket in /var/run/screen/S-root.
```
**Kill screen session:**
```
screen -S 23536 -X quit
```
[Share](https://stackoverflow.com/a/12727736 "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")
[edited Jan 10, 2013 at 12:43](https://stackoverflow.com/posts/12727736/revisions "show all edits to this post")
[](https://stackoverflow.com/users/50979/13ren)
[13ren](https://stackoverflow.com/users/50979/13ren)
12\.2k99 gold badges5050 silver badges6464 bronze badges
answered Oct 4, 2012 at 12:52
[](https://stackoverflow.com/users/1469690/collin-thomas)
[Collin Thomas](https://stackoverflow.com/users/1469690/collin-thomas)Collin Thomas
1,75011 gold badge1414 silver badges1313 bronze badges
## 1 Comment
Add a comment
[](https://stackoverflow.com/users/1644614/vaibhavatul47)
vaibhavatul47
[vaibhavatul47](https://stackoverflow.com/users/1644614/vaibhavatul47)
[Over a year ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment68656386_12727736)
'screen -ls' also works. ;)
2016-11-21T07:00:00.19Z+00:00
1
Reply
- Copy link
113
votes
Save this answer.
Show activity on this post.
It's easier to kill a session, when some meaningful name is given:
```
//Creation:
screen -S some_name proc
// Kill detached session
screen -S some_name -X quit
```
[Share](https://stackoverflow.com/a/3830781 "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")
answered Sep 30, 2010 at 13:09
[](https://stackoverflow.com/users/424894/hitman-99)
[Hitman\_99](https://stackoverflow.com/users/424894/hitman-99)Hitman\_99
2,28233 gold badges1919 silver badges2121 bronze badges
## 2 Comments
Add a comment
[](https://stackoverflow.com/users/2700631/43tesseracts)
43Tesseracts
[43Tesseracts](https://stackoverflow.com/users/2700631/43tesseracts)
[Over a year ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment82165722_3830781)
Why `screen -S` and not `screen -r`?
2017-12-02T00:52:42.86Z+00:00
0
Reply
- Copy link
[](https://stackoverflow.com/users/1507649/paul-kenjora)
Paul Kenjora
[Paul Kenjora](https://stackoverflow.com/users/1507649/paul-kenjora)
[Over a year ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment89482702_3830781)
This answer uses the name of the session, which is way more convenient than looking up the ID. Thank You\!
2018-07-09T18:29:18.043Z+00:00
1
Reply
- Copy link
43
votes
Save this answer.
Show activity on this post.
You can just go to the place where the screen session is housed and run:
```
screen -ls
```
which results in
```
There is a screen on:
26727.pts-0.devxxx (Attached)
1 Socket in /tmp/uscreens/S-xxx. <------ this is where the session is.
```
And just remove it:
1. ```
cd /tmp/uscreens/S-xxx
```
2. ```
ls
```
3. ```
26727.pts-0.devxxx
```
4. ```
rm 26727.pts-0.devxxx
```
5. ```
ls
```
The `uscreens` directory will not have the `26727.pts-0.devxxx` file in it anymore. Now to make sure just type this:
`screen -ls`
and you should get:
> No Sockets found in /tmp/uscreens/S-xxx.
[Share](https://stackoverflow.com/a/7601931 "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")
[edited Mar 3, 2014 at 19:49](https://stackoverflow.com/posts/7601931/revisions "show all edits to this post")
[](https://stackoverflow.com/users/2456263/0xcaff)
[0xcaff](https://stackoverflow.com/users/2456263/0xcaff)
13\.8k55 gold badges5252 silver badges5757 bronze badges
answered Sep 29, 2011 at 18:44
[](https://stackoverflow.com/users/971779/rc2012)
[rc2012](https://stackoverflow.com/users/971779/rc2012)rc2012
53144 silver badges22 bronze badges
## 2 Comments
Add a comment
[](https://stackoverflow.com/users/1486969/redreinard)
redreinard
[redreinard](https://stackoverflow.com/users/1486969/redreinard)
[Over a year ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment51101626_7601931)
This is the only solution that will work if the screen is "stuck", ie. not dead, but cannot be attached to.
2015-07-22T20:28:50.637Z+00:00
4
Reply
- Copy link
[](https://stackoverflow.com/users/784829/lomky)
Lomky
[Lomky](https://stackoverflow.com/users/784829/lomky)
[Over a year ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment70310117_7601931)
This helped me when the screen was utterly locked, but I did need to find and kill the actual process as well. `ps aux | grep screen` found the pid and I issued a `kill` to remove it. Depending on what you had running in your screen, you may have temp files and locks to clean up as well.
2017-01-09T16:29:21.533Z+00:00
0
Reply
- Copy link
29
votes
Save this answer.
Show activity on this post.
```
screen -wipe
```
Should clean all ***dead*** screen sessions.
[Share](https://stackoverflow.com/a/10489792 "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")
[edited Feb 12, 2015 at 23:30](https://stackoverflow.com/posts/10489792/revisions "show all edits to this post")
[](https://stackoverflow.com/users/950582/goodwine)
[Goodwine](https://stackoverflow.com/users/950582/goodwine)
1,72811 gold badge1919 silver badges3131 bronze badges
answered May 7, 2012 at 22:03
[](https://stackoverflow.com/users/1380777/vishv-jeet)
[Vishv Jeet](https://stackoverflow.com/users/1380777/vishv-jeet)Vishv Jeet
31933 silver badges22 bronze badges
## 2 Comments
Add a comment
[](https://stackoverflow.com/users/3151462/shihao-xu)
Shihao Xu
[Shihao Xu](https://stackoverflow.com/users/3151462/shihao-xu)
[Over a year ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment63623032_10489792)
What means dead? not running any program?
2016-06-29T08:18:13.553Z+00:00
11
Reply
- Copy link
[](https://stackoverflow.com/users/1781686/illnr)
illnr
[illnr](https://stackoverflow.com/users/1781686/illnr)
[Over a year ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment89212210_10489792)
@ShihaoXu Dead means the session is unreachable and on localhost (socket connection is broken). - see [gnu.org/software/screen/manual/screen.html](https://www.gnu.org/software/screen/manual/screen.html)
2018-06-30T07:33:58.393Z+00:00
1
Reply
- Copy link
23
votes
Save this answer.
Show activity on this post.
add this to your `~/.bashrc`:
```
alias cleanscreen="screen -ls | tail -n +2 | head -n -2 | awk '{print $1}'| xargs -I{} screen -S {} -X quit"
```
Then use `cleanscreen` to clean all screen session.
[Share](https://stackoverflow.com/a/15125005 "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")
[edited Mar 3, 2014 at 19:50](https://stackoverflow.com/posts/15125005/revisions "show all edits to this post")
[](https://stackoverflow.com/users/2456263/0xcaff)
[0xcaff](https://stackoverflow.com/users/2456263/0xcaff)
13\.8k55 gold badges5252 silver badges5757 bronze badges
answered Feb 28, 2013 at 0:01
[](https://stackoverflow.com/users/2115803/user2115803)
[user2115803](https://stackoverflow.com/users/2115803/user2115803)user2115803
33122 silver badges33 bronze badges
## 3 Comments
Add a comment
[](https://stackoverflow.com/users/1035860/ariel)
Ariel
[Ariel](https://stackoverflow.com/users/1035860/ariel)
[Over a year ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment38872000_15125005)
A simple one-liner: `screen -ls | grep Detached | cut -d. -f1 | awk '{print $1}' | xargs kill`
2014-07-28T17:41:09.57Z+00:00
11
Reply
- Copy link
[](https://stackoverflow.com/users/23341/jonathan)
Jonathan
[Jonathan](https://stackoverflow.com/users/23341/jonathan)
[Over a year ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment46351551_15125005)
Worked a treat, but had to modify it slightly to work on OSX: `screen -ls | tail +2 | head -2 | awk '{print $1}'| xargs -I{} screen -S {} -X quit`
2015-03-15T04:39:20.307Z+00:00
3
Reply
- Copy link
[](https://stackoverflow.com/users/551606/abhay-yadav)
Abhay Yadav
[Abhay Yadav](https://stackoverflow.com/users/551606/abhay-yadav)
[Over a year ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment50940436_15125005)
Slight improvement:-screen -ls \| grep Attached \| cut -d. -f1 \| awk '{print \$1}' \| xargs -I{} screen -d {}
2015-07-18T05:22:56.177Z+00:00
0
Reply
- Copy link
Add a comment
21
votes
Save this answer.
Show activity on this post.
For me a simple
```
exit
```
works. This is from within the screen session.
[Share](https://stackoverflow.com/a/12947338 "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")
answered Oct 18, 2012 at 4:52
[](https://stackoverflow.com/users/1027966/nick-desaulniers)
[Nick Desaulniers](https://stackoverflow.com/users/1027966/nick-desaulniers)Nick Desaulniers
2,11644 gold badges2626 silver badges4848 bronze badges
## 3 Comments
Add a comment
[](https://stackoverflow.com/users/1027966/nick-desaulniers)
Nick Desaulniers
[Nick Desaulniers](https://stackoverflow.com/users/1027966/nick-desaulniers)
[Over a year ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment68599550_12947338)
also, ctrl+a `:quit`
2016-11-18T19:22:12.593Z+00:00
2
Reply
- Copy link
[](https://stackoverflow.com/users/1027966/nick-desaulniers)
Nick Desaulniers
[Nick Desaulniers](https://stackoverflow.com/users/1027966/nick-desaulniers)
[Over a year ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment78325201_12947338)
also, ctrl+a, then K
2017-08-14T21:51:19.147Z+00:00
2
Reply
- Copy link
[](https://stackoverflow.com/users/622885/frederik-witte)
Frederik Witte
[Frederik Witte](https://stackoverflow.com/users/622885/frederik-witte)
[Over a year ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment90236326_12947338)
Or just CTRL+D within a screen
2018-08-01T14:34:27.973Z+00:00
0
Reply
- Copy link
Add a comment
16
votes
Save this answer.
Show activity on this post.
To kill *all* detached screen sessions, include this function in your .bash\_profile:
```
killd () {
for session in $(screen -ls | grep -o '[0-9]\{5\}')
do
screen -S "${session}" -X quit;
done
}
```
to run it, call `killd`
[Share](https://stackoverflow.com/a/14447172 "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")
answered Jan 21, 2013 at 21:02
[](https://stackoverflow.com/users/365298/rose-perrone)
[Rose Perrone](https://stackoverflow.com/users/365298/rose-perrone)Rose Perrone
63\.9k6161 gold badges215215 silver badges251251 bronze badges
## 1 Comment
Add a comment
[](https://stackoverflow.com/users/1176671/kostyantyn)
Kostyantyn
[Kostyantyn](https://stackoverflow.com/users/1176671/kostyantyn)
[Over a year ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment23946461_14447172)
Sometimes it's not 5 digits, so i use: killd () { for session in \$(screen -ls \| grep -o '\[0-9\]\\+') do screen -S "\${session}" -X quit; done }
2013-05-20T11:58:55.717Z+00:00
5
Reply
- Copy link
7
votes
Save this answer.
Show activity on this post.
```
== ISSUE THIS COMMAND
[xxx@devxxx ~]$ screen -ls
== SCREEN RESPONDS
There are screens on:
23487.pts-0.devxxx (Detached)
26727.pts-0.devxxx (Attached)
2 Sockets in /tmp/uscreens/S-xxx.
== NOW KILL THE ONE YOU DONT WANT
[xxx@devxxx ~]$ screen -X -S 23487.pts-0.devxxx kill
== WANT PROOF?
[xxx@devxxx ~]$ screen -ls
There is a screen on:
26727.pts-0.devxxx (Attached)
1 Socket in /tmp/uscreens/S-xxx.
```
[Share](https://stackoverflow.com/a/3151210 "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")
answered Jun 30, 2010 at 16:14
[](https://stackoverflow.com/users/262942/duggi)
[duggi](https://stackoverflow.com/users/262942/duggi)duggi
57277 silver badges1313 bronze badges
## 2 Comments
Add a comment
[](https://stackoverflow.com/users/19246/martin-carpella)
Martin Carpella
[Martin Carpella](https://stackoverflow.com/users/19246/martin-carpella)
[Over a year ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment15571775_3151210)
Wouldn't that just remove the socket, not kill the process behind it?
2012-07-31T05:56:20.567Z+00:00
0
Reply
- Copy link
[](https://stackoverflow.com/users/634275/fedir-rykhtik)
Fedir RYKHTIK
[Fedir RYKHTIK](https://stackoverflow.com/users/634275/fedir-rykhtik)
[Over a year ago](https://stackoverflow.com/questions/1509677/kill-detached-screen-session#comment17102780_3151210)
Is this method is risky from the point of view of creation of zomby processes ?
2012-10-01T13:02:56.33Z+00:00
0
Reply
- Copy link
5
votes
Save this answer.
Show activity on this post.
Alternatively, while in your screen session all you have to do is type **exit**
This will kill the shell session initiated by the screen, which effectively terminates the screen session you are on.
No need to bother with screen session id, etc.
[Share](https://stackoverflow.com/a/9532451 "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")
answered Mar 2, 2012 at 11:21
[](https://stackoverflow.com/users/970731/dat789)
[dat789](https://stackoverflow.com/users/970731/dat789)dat789
2,11333 gold badges2323 silver badges2828 bronze badges
## Comments
Add a comment
Start asking to get answers
Find the answer to your question by asking.
[Ask question](https://stackoverflow.com/questions/ask)
Explore related questions
- [linux](https://stackoverflow.com/questions/tagged/linux "show questions tagged 'linux'")
- [kill](https://stackoverflow.com/questions/tagged/kill "show questions tagged 'kill'")
- [gnu-screen](https://stackoverflow.com/questions/tagged/gnu-screen "show questions tagged 'gnu-screen'")
See similar questions with these tags.
- The Overflow Blog
- [One is not the loneliest number for API calls](https://stackoverflow.blog/2025/10/03/one-is-not-the-loneliest-number-for-api-calls/?cb=1)
- [Context is king for secure, AI-generated code](https://stackoverflow.blog/2025/10/07/context-is-king-for-secure-ai-generated-code/?cb=1)
- Featured on Meta
- [Please welcome V2Blast back to the Community Team\!](https://meta.stackexchange.com/questions/412987/please-welcome-v2blast-back-to-the-community-team?cb=1)
- [A First Look: Stack Overflow Redesign](https://meta.stackexchange.com/questions/412992/a-first-look-stack-overflow-redesign?cb=1)
- [Policy: Generative AI (e.g., ChatGPT) is banned](https://meta.stackoverflow.com/questions/421831/policy-generative-ai-e-g-chatgpt-is-banned?cb=1)
- [Exploring new types of questions on Stack Overflow](https://meta.stackoverflow.com/questions/435121/exploring-new-types-of-questions-on-stack-overflow?cb=1)
Community activity
Last 1 hr
- Users online activity
21253 users online
- 29 questions
- 16 answers
- 96 comments
- 403 upvotes
Popular tags
[c++](https://stackoverflow.com/questions/tagged/c++)[python](https://stackoverflow.com/questions/tagged/python)[java](https://stackoverflow.com/questions/tagged/java)[git](https://stackoverflow.com/questions/tagged/git)[javascript](https://stackoverflow.com/questions/tagged/javascript)[mysql](https://stackoverflow.com/questions/tagged/mysql)
Popular unanswered question
[Error occured while running DAX in Power BI which is connected to SSAS using live connect mode](https://stackoverflow.com/questions/79784495)
[powerbi](https://stackoverflow.com/questions/tagged/powerbi)[dax](https://stackoverflow.com/questions/tagged/dax)[ssas](https://stackoverflow.com/questions/tagged/ssas)[powerbi-desktop](https://stackoverflow.com/questions/tagged/powerbi-desktop)[ssas-tabular](https://stackoverflow.com/questions/tagged/ssas-tabular)
[](https://stackoverflow.com/users/10433098)
[user10433098](https://stackoverflow.com/users/10433098)
- 1
1 hour ago
#### Linked
[68](https://stackoverflow.com/questions/14447131/kill-all-detached-screen-sessions?lq=1 "Question score (upvotes - downvotes)")
[Kill all detached screen sessions](https://stackoverflow.com/questions/14447131/kill-all-detached-screen-sessions?noredirect=1&lq=1)
[2](https://stackoverflow.com/questions/31538367/gnu-screen-command-not-showing-status-bar?lq=1 "Question score (upvotes - downvotes)")
[GNU screen command not showing status bar](https://stackoverflow.com/questions/31538367/gnu-screen-command-not-showing-status-bar?noredirect=1&lq=1)
[2](https://stackoverflow.com/questions/54501853/escape-character-in-a-bash-script?lq=1 "Question score (upvotes - downvotes)")
[Escape character in a bash script](https://stackoverflow.com/questions/54501853/escape-character-in-a-bash-script?noredirect=1&lq=1)
#### Related
[1138](https://stackoverflow.com/questions/20813486/exploring-docker-containers-file-system?rq=1 "Question score (upvotes - downvotes)")
[Exploring Docker container's file system](https://stackoverflow.com/questions/20813486/exploring-docker-containers-file-system?rq=1)
[243](https://stackoverflow.com/questions/20807696/how-do-i-force-detach-screen-from-another-ssh-session?rq=1 "Question score (upvotes - downvotes)")
[How do I force detach Screen from another SSH session?](https://stackoverflow.com/questions/20807696/how-do-i-force-detach-screen-from-another-ssh-session?rq=1)
[1026](https://stackoverflow.com/questions/323972/is-there-any-way-to-kill-a-thread?rq=1 "Question score (upvotes - downvotes)")
[Is there any way to kill a Thread?](https://stackoverflow.com/questions/323972/is-there-any-way-to-kill-a-thread?rq=1)
[328](https://stackoverflow.com/questions/537942/how-to-list-running-screen-sessions?rq=1 "Question score (upvotes - downvotes)")
[How to list running screen sessions?](https://stackoverflow.com/questions/537942/how-to-list-running-screen-sessions?rq=1)
[506](https://stackoverflow.com/questions/4847691/how-do-i-get-out-of-screen-without-typing-exit?rq=1 "Question score (upvotes - downvotes)")
[How do I get out of 'screen' without typing 'exit'?](https://stackoverflow.com/questions/4847691/how-do-i-get-out-of-screen-without-typing-exit?rq=1)
[547](https://stackoverflow.com/questions/1662909/undefined-reference-to-pthread-create-in-linux?rq=1 "Question score (upvotes - downvotes)")
[Undefined reference to pthread\_create in Linux](https://stackoverflow.com/questions/1662909/undefined-reference-to-pthread-create-in-linux?rq=1)
#### [Hot Network Questions](https://stackexchange.com/questions?tab=hot)
- [Why not use 上 in 跪在地下](https://chinese.stackexchange.com/questions/61617/why-not-use-%E4%B8%8A-in-%E8%B7%AA%E5%9C%A8%E5%9C%B0%E4%B8%8B)
- [What is the most likely used power source that can survive till heat death (100 trillion years)?](https://worldbuilding.stackexchange.com/questions/269315/what-is-the-most-likely-used-power-source-that-can-survive-till-heat-death-100)
- [In the USA, how may women-only gyms handle trans women?](https://law.stackexchange.com/questions/111089/in-the-usa-how-may-women-only-gyms-handle-trans-women)
- [Shall I pre-optimize the geometry of rutin with HF, then re-optimize it with DFT?](https://mattermodeling.stackexchange.com/questions/14545/shall-i-pre-optimize-the-geometry-of-rutin-with-hf-then-re-optimize-it-with-dft)
- [Consecutive Letters](https://puzzling.stackexchange.com/questions/133495/consecutive-letters)
- [How do French mathematicians write ordered pairs, since they already use the comma as a decimal separator?](https://math.stackexchange.com/questions/5100008/how-do-french-mathematicians-write-ordered-pairs-since-they-already-use-the-com)
- [Have a valid tourist visa for US. Recently quit my job, can I visit my sister working in USA](https://travel.stackexchange.com/questions/200379/have-a-valid-tourist-visa-for-us-recently-quit-my-job-can-i-visit-my-sister-wo)
- [Fourier coefficients of time-scaled signal](https://dsp.stackexchange.com/questions/98312/fourier-coefficients-of-time-scaled-signal)
- [Were the supply ships in the Global Sumud Flotilla empty?](https://skeptics.stackexchange.com/questions/59271/were-the-supply-ships-in-the-global-sumud-flotilla-empty)
- [Why 1st law of thermodynamics is applied to cosmological expansion](https://physics.stackexchange.com/questions/860413/why-1st-law-of-thermodynamics-is-applied-to-cosmological-expansion)
- [What's the difference between a Shrine of Guidance and a Blessed Shrine of Guidance?](https://gaming.stackexchange.com/questions/413616/whats-the-difference-between-a-shrine-of-guidance-and-a-blessed-shrine-of-guida)
- [Is the number system for x assumed beforehand when proving the quadratic formula?](https://math.stackexchange.com/questions/5100301/is-the-number-system-for-x-assumed-beforehand-when-proving-the-quadratic-formula)
- [UART as RS485 with Linux](https://electronics.stackexchange.com/questions/756569/uart-as-rs485-with-linux)
- [Who said “Is it lawful to heal on the Sabbath”, Jesus or the Pharisee?](https://hermeneutics.stackexchange.com/questions/108674/who-said-is-it-lawful-to-heal-on-the-sabbath-jesus-or-the-pharisee)
- [What kind of probability distribution is hinted about in Words of Radiance?](https://scifi.stackexchange.com/questions/299520/what-kind-of-probability-distribution-is-hinted-about-in-words-of-radiance)
- [Using LM1084 LDO without capacitors. Can that cause stability and heat dissipation design flaws in my 22V voltage limiter for a solar panel?](https://electronics.stackexchange.com/questions/756608/using-lm1084-ldo-without-capacitors-can-that-cause-stability-and-heat-dissipati)
- [What is the absolute earliest and absolute latest dates the Gospel of John could possibly have been written?](https://hermeneutics.stackexchange.com/questions/108634/what-is-the-absolute-earliest-and-absolute-latest-dates-the-gospel-of-john-could)
- [Should I say in the SOP that I'm not planning to stay in academia after the PhD in pure math?](https://academia.stackexchange.com/questions/221594/should-i-say-in-the-sop-that-im-not-planning-to-stay-in-academia-after-the-phd)
- [Trouble uncommenting a line](https://askubuntu.com/questions/1556998/trouble-uncommenting-a-line)
- [The question contains the answer (literally)](https://puzzling.stackexchange.com/questions/133467/the-question-contains-the-answer-literally)
- [How can I measure power supply noise and ripple lower than 100µV?](https://electronics.stackexchange.com/questions/756583/how-can-i-measure-power-supply-noise-and-ripple-lower-than-100%C2%B5v)
- [Find the smallest semiprime satisfying a bunch of conditions](https://codereview.stackexchange.com/questions/298289/find-the-smallest-semiprime-satisfying-a-bunch-of-conditions)
- [What type of cloth is used in 'magic canvas' sets that let you 'paint' black temporarily with just water?](https://chemistry.stackexchange.com/questions/191032/what-type-of-cloth-is-used-in-magic-canvas-sets-that-let-you-paint-black-tem)
- [How do open-source projects prevent “design drift” when hundreds of contributors make small changes?](https://opensource.stackexchange.com/questions/15621/how-do-open-source-projects-prevent-design-drift-when-hundreds-of-contributors)

# Why are you flagging this comment?
Probable spam.
This comment promotes a product, service or website while [failing to disclose the author's affiliation](https://stackoverflow.com/help/promotion).
Unfriendly or contains harassment/bigotry/abuse.
This comment is unkind, insulting or attacks another person or group. Learn more in our [Code of Conduct](https://stackoverflow.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
##### [Stack Overflow](https://stackoverflow.com/)
- [Questions](https://stackoverflow.com/questions)
- [Help](https://stackoverflow.com/help)
- [Chat](https://chat.stackoverflow.com/?tab=explore)
##### [Products](https://stackoverflow.co/)
- [Teams](https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=teams)
- [Advertising](https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=advertising)
- [Talent](https://stackoverflow.co/advertising/employer-branding/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=talent)
##### [Company](https://stackoverflow.co/)
- [About](https://stackoverflow.co/)
- [Press](https://stackoverflow.co/company/press/)
- [Work Here](https://stackoverflow.co/company/work-here/)
- [Legal](https://stackoverflow.com/legal)
- [Privacy Policy](https://stackoverflow.com/legal/privacy-policy)
- [Terms of Service](https://stackoverflow.com/legal/terms-of-service/public)
- [Contact Us](https://stackoverflow.com/contact)
- 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 © 2025 Stack Exchange Inc; user contributions licensed under [CC BY-SA](https://stackoverflow.com/help/licensing) . rev 2025.10.6.34876 |
| Readable Markdown | null |
| Shard | 169 (laksa) |
| Root Hash | 714406497480128969 |
| Unparsed URL | com,stackoverflow!/questions/1509677/kill-detached-screen-session s443 |