Showing posts with label port. Show all posts
Showing posts with label port. Show all posts

Friday, August 9, 2013

killing app, listening on a defined port in single line

In Linux this will kill the process, listening on port 8888:

ps aux | grep port=8888 | awk '{print $2}' | tail -n 1 | xargs kill -9