mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-06 20:35:11 +01:00
Small script to check what process is hogging a port
This commit is contained in:
6
bin/portuser
Executable file
6
bin/portuser
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
echo "Provide a TCP port number"
|
||||||
|
else
|
||||||
|
sudo fuser -v $1/tcp
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user