Aborting UNIX Processes Running Under a Specific TCP Port

Home » Blog » Software » Aborting UNIX Processes Running Under a Specific TCP Port

As a longtime UNIX (of the macOS variety) / Linux user, it’s kind of embarrassing that only recently I was made aware of this single command (or rather – in a true UNIX fashion: a composition of two commands) that allows you to stop a UNIX process running under a specific TCP port (e.g., a Spring Boot application or an Angular front-end during development) – rather than browsing for that port in a process list first and then manually using the process’s ID for issuing a subsequent kill command:

explainshell.com has an article that explains this command and its components quite nicely in a lot more detail.

About the author: Bjoern
Independent IT consultant, entrepreneur

Leave a Comment

Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.