Actions icon indicating copy to clipboard operation
Actions copied to clipboard

Action proposal: Close port

Open Angelk90 opened this issue 1 year ago • 1 comments

Description

It would be useful, to know which ports are active and if you click on that port you close it.

I tried doing something similar to get a list of ports:

netstat -Watnlv | grep LISTEN | awk '{"ps -ww -o args= -p " $9 | getline procname; print $4 }' | grep '[*]' | sort -u | sed "s/*.//"

Then via this output, you should create a choice menu that clicking closes the door.

sudo lsof -t -i tcp:Port | sudo xargs kill

@sindresorhus : Do you think it could be useful?

Angelk90 avatar May 30 '23 16:05 Angelk90