Which process is listening on port?

Using lsof (list open files):

port.sh
Copy

# Which process is listening on port 3000?
lsof -i:3000