Skip to content

Instantly share code, notes, and snippets.

@mikemfleming
Created May 11, 2022 19:30
Show Gist options
  • Save mikemfleming/a2bd99301d3bd451397cfdca78c5c268 to your computer and use it in GitHub Desktop.
Save mikemfleming/a2bd99301d3bd451397cfdca78c5c268 to your computer and use it in GitHub Desktop.
Kill process by port number
wtfport(){
kill $(lsof -t -i:$1)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment