Shell/Bash: linux see used ports Example

By

Shell/Bash Example: This is the "linux see used ports" Example. compiled from many sources on the internet by SimpleTutorials.org

linux how to see ports in use

# Any of the following
sudo lsof -i -P -n | grep LISTEN
sudo netstat -tulpn | grep LISTEN
sudo lsof -i:22 # see a specific port such as 22
sudo nmap -sTU -O IP-address-Here

ubuntu check process on port

sudo lsof -i:22

ports in use linux

# To see ports in use
sudo lsof -i -P -n | grep LISTEN 
sudo netstat -tulpn | grep LISTEN

linux how to see ports in use

sudo netstat -tulpn | grep LISTEN

sudo lsof -i:22 # see a specific port such as 22

linux see used ports

netstat -tulpn

check what ports are open linux

## if you use linux
sudo ss -tulw


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

Others