find running localhosts linux code example
Example 1: mac terminal find process by port
sudo lsof -i tcp:3000
Example 2: check running process in linux
ps -aux
# (print all processes owned by a user named "x")
sudo lsof -i tcp:3000
ps -aux
# (print all processes owned by a user named "x")