Shell/Bash: ubuntu listening ports Example

By

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

ubuntu listening ports

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

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

see what is using a port ubuntu

$ sudo lsof -i:22


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

Others