logoNEURAL COOK
SearchAll PostsTagsNotesAuthor
logoNEURAL COOK

A posts created with Next.js and Tailwind.css

Explore

  • All posts
  • Notes
  • Snippets
  • Tags
  • RSS feed

Connect

instagramlinkedinmailgithub

© 2026 VIKI. All rights reserved.

Built with
← All posts

Port Wars: Hunt Down and Terminate Rogue Processes!

#linux
#code
#snippet
Vikramaditya SinghVikramaditya Singh
December 23, 2024
1 min read
0

On macOS use the command lsof -i with the port number to find out what is running on a specific port.

sudo lsof -i :<portnumber>

> This will work for linux as well ;)

Kill the process running on a specific port

use the kill command with the -9 option and the port PID number to kill a process

kill -9 <pid>
Vikramaditya Singh

Vikramaditya Singh

githublinkedin

Senior Member of Technical Staff at Oracle. I build high-performance web applications and write about the intersection of software engineering and human creativity.

View Portfolio →

You Might Also Like

#3
0
0

The Tar Command Chronicles: Bundle, Zip, and Conquer!

Dive into the magic of the tar command and uncover its most practical and time-saving uses.

tarlinuxcodesnippet
View Source
1 min read
Dec 20, 2024

My best stuff is in my email.

My goal is for it to be the most useful email you read that day.

No spam. Unsubscribe in one click.

Comments (0)

Loading comments...