ℹ️ 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.2 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://www.techcoil.com/blog/how-to-terminate-screen-terminal-sessions-cleanly-on-macos/ |
| Last Crawled | 2026-04-19 15:24:48 (5 days ago) |
| First Indexed | 2020-01-15 16:29:32 (6 years ago) |
| HTTP Status Code | 200 |
| Content | |
| Meta Title | How to terminate screen terminal sessions cleanly on macOS |
| Meta Description | So how do you communicate with a serial device that is connected to your Mac? In this situation, you can use the screen command on your Mac to do so. After you terminate the serial session with Ctrl+A+D, you may find that the serial device is still being hogged by the screen command. When you… |
| Meta Canonical | null |
| Boilerpipe Text | So how do you communicate with a serial device that is connected to your Mac?
In this situation, you can use the screen command on your Mac to do so.
After you terminate the serial session with Ctrl+A+D, you may find that the serial device is still being hogged by the screen command.
When you try to access the device again, you may encounter a
Resource busy
error message.
For example, after I detached my screen terminal from
/dev/cu.SLAB_USBtoUART
, I will get the following message if I try to connect to the same device again:
Cannot open line '/dev/cu.SLAB_USBtoUART' for R/W: Resource busy
Given these points, this post shows how we can terminate screen terminal sessions cleanly on macOS.
Steps to terminate screen terminal sessions cleanly on macOS
In order to create the situation of resource hogging, let's connect your serial device with the screen command. For example, I may connect to my ESPx device with the following command:
screen -port /dev/cu.SLAB_USBtoUART 115200
After doing so, detach the session by pressing
Ctrl+A+D
.
When you do so, the serial device is still being locked by the screen command.
Given that, let's list the screens that are being locked with the following command:
screen -list
After the command completes, you should see something like this the following as an output:
There is a screen on:
10184.ttys001.ZZZM56582454A (Detached)
1 Socket in /var/folders/vs/lx78cw0x7m921p6qdmw9h4xm0000gr/T/.screen.
In order to terminate the screen terminal cleanly, run the following command:
screen -X -S 10184 quit
After the command completes, you can run the screen command to verify if the session had been terminated:
screen -list
When the previous terminal session had been terminated successfully, you should see the following output:
No Sockets found in /var/folders/vs/lx78cw0x7m921p6qdmw9h4xm0000gr/T/.screen.
About Clivant
Clivant a.k.a Chai Heng enjoys composing software and building systems to serve people. He owns
techcoil.com
and hopes that whatever he had written and built so far had benefited people. All views expressed belongs to him and are not representative of the company that he works/worked for. |
| Markdown | [](https://www.techcoil.com/)
- [☰]()
- [About](https://www.techcoil.com/about "About Techcoil")
- [Blog](https://www.techcoil.com/blog)
- [DevOps](https://www.techcoil.com/blog/tag/software-development-operations/)
- [Raspberry Pi](https://www.techcoil.com/blog/tag/raspberry-pi/)
- [Java](https://www.techcoil.com/blog/tag/java/)
- [PHP](https://www.techcoil.com/blog/tag/php/)
- [Python](https://www.techcoil.com/blog/tag/python/)
- [Money](https://www.techcoil.com/blog/how-to-terminate-screen-terminal-sessions-cleanly-on-macos/#Money)
- [How we make money](https://www.techcoil.com/how-we-make-money)
- [Easy and effective ways for programmers’ websites to earn money](https://www.techcoil.com/blog/easy-and-effective-ways-for-programmers-websites-to-earn-money/)
- [Resources](https://www.techcoil.com/blog/how-to-terminate-screen-terminal-sessions-cleanly-on-macos/#Resources)
- [Things that you should consider getting if you are a computer programmer](https://www.techcoil.com/things-that-you-should-consider-getting-if-you-are-a-computer-programmer)
- [Raspberry Pi 3 buying guide](https://www.techcoil.com/raspberry-pi-3-buying-guide)
- [Raspberry Pi 3 project ideas for programmers, software engineers, software developers or anyone who codes](https://www.techcoil.com/raspberry-pi-3-project-ideas-for-programmers-software-engineers-software-developers-or-anyone-who-codes/)
- [Raspbian Stretch Lite project ideas](https://www.techcoil.com/raspbian-stretch-lite-project-ideas)
- [Shop](https://www.techcoil.com/shop)
- [Latest selections](https://www.techcoil.com/shop)
- [Gifts for programmers](https://www.techcoil.com/shop/for/gifts-for-programmers)
- [Gifts for women](https://www.techcoil.com/shop/for/gifts-for-women)
- [Gifts for men](https://www.techcoil.com/shop/for/gifts-for-men)
- [Interesting T-Shirts](https://www.techcoil.com/shop/for/interesting-t-shirts)
- [Travel gears](https://www.techcoil.com/shop/for/travel-gears)
- [More](https://www.techcoil.com/blog/how-to-terminate-screen-terminal-sessions-cleanly-on-macos/#More)
- [Books](https://www.techcoil.com/books)
- [Proofs](https://www.techcoil.com/proof-of-concepts)
- [Tools](https://www.techcoil.com/tools/)
[Quick References](https://www.techcoil.com/blog/category/quick-references/)
14 January 2020
This post may contain affiliate links which generate earnings for Techcoil when you make a purchase after clicking on them. Such earnings keep Techcoil running at no added cost to your purchases. Please read [my disclosure](https://www.techcoil.com/disclaimer) for more info.
# How to terminate screen terminal sessions cleanly on macOS
So how do you communicate with a serial device that is connected to your Mac?
In this situation, you can use the screen command on your Mac to do so.
After you terminate the serial session with Ctrl+A+D, you may find that the serial device is still being hogged by the screen command.
When you try to access the device again, you may encounter a **Resource busy** error message.
For example, after I detached my screen terminal from **/dev/cu.SLAB\_USBtoUART**, I will get the following message if I try to connect to the same device again:
**Cannot open line '/dev/cu.SLAB\_USBtoUART' for R/W: Resource busy**
Given these points, this post shows how we can terminate screen terminal sessions cleanly on macOS.
## Steps to terminate screen terminal sessions cleanly on macOS
In order to create the situation of resource hogging, let's connect your serial device with the screen command. For example, I may connect to my ESPx device with the following command:
```
screen -port /dev/cu.SLAB_USBtoUART 115200
```
After doing so, detach the session by pressing **Ctrl+A+D**.
When you do so, the serial device is still being locked by the screen command.
Given that, let's list the screens that are being locked with the following command:
```
screen -list
```
After the command completes, you should see something like this the following as an output:
```
There is a screen on:
10184.ttys001.ZZZM56582454A (Detached)
1 Socket in /var/folders/vs/lx78cw0x7m921p6qdmw9h4xm0000gr/T/.screen.
```
In order to terminate the screen terminal cleanly, run the following command:
```
screen -X -S 10184 quit
```
After the command completes, you can run the screen command to verify if the session had been terminated:
```
screen -list
```
When the previous terminal session had been terminated successfully, you should see the following output:
```
No Sockets found in /var/folders/vs/lx78cw0x7m921p6qdmw9h4xm0000gr/T/.screen.
```
- [ Share](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwp.me%2Fp245TQ-vo)
- [ Tweet](https://twitter.com/intent/tweet?text=++How+to+terminate+screen+terminal+sessions+cleanly+on+macOS&url=https%3A%2F%2Fwp.me%2Fp245TQ-vo&via=Techcoil_com)
- [ Share](https://www.linkedin.com/shareArticle?mini=1&title=++How+to+terminate+screen+terminal+sessions+cleanly+on+macOS&url=https%3A%2F%2Fwp.me%2Fp245TQ-vo&source=https://www.techcoil.com)
- [ Save](https://pinterest.com/pin/create/button/?url=https%3A%2F%2Fwww.techcoil.com%2Fblog%2Fhow-to-terminate-screen-terminal-sessions-cleanly-on-macos%2F&description=++How+to+terminate+screen+terminal+sessions+cleanly+on+macOS)


### About Clivant
Clivant a.k.a Chai Heng enjoys composing software and building systems to serve people. He owns [techcoil.com](http:///www.techcoil.com "Go to techcoil.com") and hopes that whatever he had written and built so far had benefited people. All views expressed belongs to him and are not representative of the company that he works/worked for.
###### ← Previous post
[How to post JSON data to a HTTP server endpoint from your ESP32 development board with ArduinoJson](https://www.techcoil.com/blog/how-to-post-json-data-to-a-http-server-endpoint-from-your-esp32-development-board-with-arduinojson/ "How to post JSON data to a HTTP server endpoint from your ESP32 development board with ArduinoJson")
###### Next post →
[How to setup MicroPython on your ESP32 development board to run Python applications](https://www.techcoil.com/blog/how-to-setup-micropython-on-your-esp32-development-board-to-run-python-applications/ "How to setup MicroPython on your ESP32 development board to run Python applications")
### You may also like:
#### Follow us
[](https://www.facebook.com/Techcoil "Follow Techcoil on Facebook")
[](https://twitter.com/Techcoil_com "Follow Techcoil on Twitter")
[](https://www.pinterest.com/techcoil "Follow Techcoil on Pinterest")
[macOS](https://www.techcoil.com/blog/tag/macos/)[macOS screen](https://www.techcoil.com/blog/tag/macos-screen/)


[](https://www.techcoil.com/)
- [About](https://www.techcoil.com/about/ "Find out more about Techcoil")
- [Blog](https://www.techcoil.com/blog/ "Check out our blog entries")
- [How we make money](https://www.techcoil.com/how-we-make-money/ "Find out how we make money")
- [Raspberry Pi Ideas](https://www.techcoil.com/blog/tag/raspberry-pi/ "Raspberry Pi Ideas")
- [Python Tutorials](https://www.techcoil.com/blog/tag/python/ "Python Tutorials")
- [Shop](https://www.techcoil.com/shop/ "Find some gift ideas here")
- [Recommendations for programmers](https://www.techcoil.com/things-that-you-should-consider-getting-if-you-are-a-computer-programmer/ "Recommendations for programmers")
#### Follow us
[](https://www.facebook.com/Techcoil "Follow Techcoil on Facebook")
[](https://twitter.com/Techcoil_com "Follow Techcoil on Twitter")
[](https://www.pinterest.com/techcoil "Follow Techcoil on Pinterest")
© 2010 - 2023 Techcoil.com: All Rights Reserved / [Disclaimer](https://www.techcoil.com/disclaimer) |
| Readable Markdown | So how do you communicate with a serial device that is connected to your Mac?
In this situation, you can use the screen command on your Mac to do so.
After you terminate the serial session with Ctrl+A+D, you may find that the serial device is still being hogged by the screen command.
When you try to access the device again, you may encounter a **Resource busy** error message.
For example, after I detached my screen terminal from **/dev/cu.SLAB\_USBtoUART**, I will get the following message if I try to connect to the same device again:
**Cannot open line '/dev/cu.SLAB\_USBtoUART' for R/W: Resource busy**
Given these points, this post shows how we can terminate screen terminal sessions cleanly on macOS.
## Steps to terminate screen terminal sessions cleanly on macOS
In order to create the situation of resource hogging, let's connect your serial device with the screen command. For example, I may connect to my ESPx device with the following command:
```
screen -port /dev/cu.SLAB_USBtoUART 115200
```
After doing so, detach the session by pressing **Ctrl+A+D**.
When you do so, the serial device is still being locked by the screen command.
Given that, let's list the screens that are being locked with the following command:
```
screen -list
```
After the command completes, you should see something like this the following as an output:
```
There is a screen on:
10184.ttys001.ZZZM56582454A (Detached)
1 Socket in /var/folders/vs/lx78cw0x7m921p6qdmw9h4xm0000gr/T/.screen.
```
In order to terminate the screen terminal cleanly, run the following command:
```
screen -X -S 10184 quit
```
After the command completes, you can run the screen command to verify if the session had been terminated:
```
screen -list
```
When the previous terminal session had been terminated successfully, you should see the following output:
```
No Sockets found in /var/folders/vs/lx78cw0x7m921p6qdmw9h4xm0000gr/T/.screen.
```

### About Clivant
Clivant a.k.a Chai Heng enjoys composing software and building systems to serve people. He owns [techcoil.com](http:///www.techcoil.com "Go to techcoil.com") and hopes that whatever he had written and built so far had benefited people. All views expressed belongs to him and are not representative of the company that he works/worked for. |
| ML Classification | |
| ML Categories | null |
| ML Page Types | null |
| ML Intent Types | null |
| Content Metadata | |
| Language | en-us |
| Author | null |
| Publish Time | 2020-01-14 02:02:41 (6 years ago) |
| Original Publish Time | 2020-01-14 02:02:41 (6 years ago) |
| Republished | No |
| Word Count (Total) | 561 |
| Word Count (Content) | 337 |
| Links | |
| External Links | 10 |
| Internal Links | 44 |
| Technical SEO | |
| Meta Nofollow | No |
| Meta Noarchive | No |
| JS Rendered | No |
| Redirect Target | null |
| Performance | |
| Download Time (ms) | 329 |
| TTFB (ms) | 328 |
| Download Size (bytes) | 13,887 |
| Shard | 177 (laksa) |
| Root Hash | 15459801804280156377 |
| Unparsed URL | com,techcoil!www,/blog/how-to-terminate-screen-terminal-sessions-cleanly-on-macos/ s443 |