Determine the process pid listening on a certain port January 1, 2023 by Tarik Short version which you can pass to kill command: lsof -i:80 -t