Created
January 12, 2020 12:53
-
-
Save afifhusnul/80f3aeea35e2b7179d6b0a5b57c3535f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo digi123 | sudo -S lsof -i -P -n | grep LISTEN | |
read -p "Enter port : " port | |
/bin/kill -9 $(lsof -t -i:$port) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment