How do I check if a port is running on Linux?

How do I check if a port is running on Linux?
Answer
How to check the listening ports and applications on Linux:
  1. Open a terminal application i.e. shell prompt.
  2. Run any one of the following command: sudo lsof -i -P -n | grep LISTEN. sudo netstat -tulpn | grep LISTEN. sudo nmap -sTU -O IP-address-Here.
 

Tìm kiếm

Back
Top