[ $1 ] || {
echo "Usage: $0 <portno>"
exit 1
}
lsof -P | grep ':'$1
lsof -P | grep ':'$1 | awk '{ print $2}' | xargs kill -9
[ $1 ] || {
echo "Usage: $0 <portno>"
exit 1
}
lsof -P | grep ':'$1
lsof -P | grep ':'$1 | awk '{ print $2}' | xargs kill -9
Hello,

Welcome to Skills421, our knowledge repository for all things tech in the 21st century
Leave a comment