Skip to content

tsukiy0's blog

Kill process by port

February 11, 2019

kill -9 $(lsof -t -i:[port])
  • kill

    • -9 immediately “hard”, or;
    • -15 softly allowing cleanup
  • lsof list open files (yes, an open port is a file!)

    • -i matching this internet address
    • -t terse

tsukiy0