lsof port check code example
Example 1: find out which procses is using port linux
sudo lsof -i:
Example 2: process runninng on particular port
sudo ss -lptn 'sport = :80'
Example 3: lsof port
$ lsof -i :port
# ex. lsof -i :3000
sudo lsof -i:
sudo ss -lptn 'sport = :80'
$ lsof -i :port
# ex. lsof -i :3000