From 4d75ff14ce115d61e16476204b925458a5c57fc8 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Sat, 17 Oct 2015 09:40:16 -0500 Subject: [PATCH] Add Kill Everything Running On A Certain Port as a unix til. --- README.md | 1 + unix/kill-everything-running-on-a-certain-port.md | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 unix/kill-everything-running-on-a-certain-port.md diff --git a/README.md b/README.md index 22dfcda..d693fdb 100644 --- a/README.md +++ b/README.md @@ -204,6 +204,7 @@ smart people at [Hashrocket](http://hashrocket.com/). - [Find Newer Files](unix/find-newer-files.md) - [Global Substitution On The Previous Command](unix/global-substitution-on-the-previous-command.md) - [Hexdump A Compiled File](unix/hexdump-a-compiled-file.md) +- [Kill Everything Running On A Certain Port](unix/kill-everything-running-on-a-certain-port.md) - [Killing A Frozen SSH Session](unix/killing-a-frozen-ssh-session.md) - [List All The Say Voices](unix/list-all-the-say-voices.md) - [Only Show The Matches](unix/only-show-the-matches.md) diff --git a/unix/kill-everything-running-on-a-certain-port.md b/unix/kill-everything-running-on-a-certain-port.md new file mode 100644 index 0000000..e3a41df --- /dev/null +++ b/unix/kill-everything-running-on-a-certain-port.md @@ -0,0 +1,12 @@ +# Kill Everything Running On A Certain Port + +You can quickly kill everything running on a certain port with the following +command. + +```bash +sudo kill `sudo lsof -t -i:3000` +``` + +This gets a list of pids for all the processes and then kills them. + +[source](http://stackoverflow.com/questions/9346211/how-to-kill-a-process-on-a-port-on-ubuntu)