Skip to content

Instantly share code, notes, and snippets.

@ryodeushii
Created April 11, 2023 10:11
Show Gist options
  • Save ryodeushii/73ab9d9e5a387d0849873f67acd2fab8 to your computer and use it in GitHub Desktop.
Save ryodeushii/73ab9d9e5a387d0849873f67acd2fab8 to your computer and use it in GitHub Desktop.
bash snippets
# find PIDs by used port and kill
sudo lsof -i:8081 | awk '{print $2}' | awk '/[0-9]+/' | uniq -c | awk '{print $2}' | xargs kill -9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment