HowTo: Killing Screen Outside Screen

I had a command inside a screen session lock up on me. Here’s how to kill it from a detached shell:

screen -X -S 33474 quit


  • -X denotes that we want to execute a screen command
  • -S denotes the socket or screen number (here 33474)
  • “quit” is the command to send to the screen

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.