Skip to content

Instantly share code, notes, and snippets.

@jerlendds
Last active September 3, 2025 21:54
Show Gist options
  • Select an option

  • Save jerlendds/20345f9b0aa7373e6cfd13b130c187a6 to your computer and use it in GitHub Desktop.

Select an option

Save jerlendds/20345f9b0aa7373e6cfd13b130c187a6 to your computer and use it in GitHub Desktop.
killport
#!/bin/bash
echo "Killing PID $(fuser -k $1/tcp)on $1"
fuser -k "$1/tcp"
@jerlendds
Copy link
Author

jerlendds commented Sep 3, 2025

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment