lsof -l | grep listner code example Example: process runninng on particular port sudo ss -lptn 'sport = :80'