Shell/Bash: lsof port Example


Shell/Bash Example: This is the "lsof port" Example. compiled from many sources on the internet by

find out which procses is using port linux

sudo lsof -i:

process runninng on particular port

sudo ss -lptn 'sport = :80'

lsof port

$ lsof -i :port
# ex. lsof -i :3000

cli check what is listening on port

lsof -i tcp:53 #Check what is listening on port 53
lsof -t -i tcp:53 #Return the process PID listening on port 53

* Summary: This "lsof port" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!