-
Download the script from github releases
-
Extract it to somewhere
-
Install lsof package ("sudo pacman -S lsof" on arch based distros)
-
Run "chmod +x portinfo.sh"
-
Optionally install it with "./portinfo.sh --install"
-
Done! Now see "./portinfo.sh --help"
-
To uninstall, do "portinfo --uninstall"
Installing is optional, as it just makes it accessible more easily. You can just use fully it as ./porinfo.sh.
Examples for usage:
portinfo 8080 - Gets info about process occupying the port 8080
portinfo 8080 --kill - Kills process occupying the port 8080. If it fails, it will ask you if you want to kill it forcefully.