---
title: "Discussion on \"How to Find Which Project Is Running on a Port on Mac\n\" | Hashnode"
description: "Discussion on \"How to Find Which Project Is Running on a Port on Mac\n\". lsof gives you a PID. Two more commands give you the folder, the full command and the git branch behind it."
url: "https://hashnode.com/posts/how-to-find-which-project-is-running-on-a-port-on-mac/6ad99556491b9f9e713b66b6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Find Which Project Is Running on a Port on Mac](https://portlivo.hashnode.dev/how-to-find-which-project-is-running-on-a-port-on-mac?utm_source=hashnode&utm_medium=feed)

lsof gives you a PID. Two more commands give you the folder, the full command and the git branch behind it.

Oct 22 · 7 min read · portlivo.hashnode.dev  
Read the article

-   [#mac](https://hashnode.com/tag/mac)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#terminal](https://hashnode.com/tag/terminal)
-   [#developer-tools](https://hashnode.com/tag/developer-tools)

## Written by

[Anmol Sethi](https://hashnode.com/@anmolsethi)

@anmolsethi · Mumbai, India

  
[View profile](https://hashnode.com/@anmolsethi)

Indie Developer · Building digital products

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
