SyntaxFix
Write A Post
Hire A Developer
Questions
Syntax:
kill -9 $(lsof -t -i:portnumber)
Example: To kill the process running at port 4200, run following command
kill -9 $(lsof -t -i:4200)
Tested in Ubuntu.