mirror of
https://github.com/jbranchaud/til
synced 2026-01-02 22:58:01 +00:00
Add Kill Everything Running On A Certain Port as a unix til.
This commit is contained in:
@@ -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)
|
||||
|
||||
12
unix/kill-everything-running-on-a-certain-port.md
Normal file
12
unix/kill-everything-running-on-a-certain-port.md
Normal file
@@ -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)
|
||||
Reference in New Issue
Block a user