How do you check which all ports are open in Linux?

How do you check which all ports are open in Linux?
Answer
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 on Linux to see open ports: sudo lsof -i -P -n | grep LISTEN. sudo netstat -tulpn | grep LISTEN. …
  3. For the latest version of Linux use the ss command. For example, ss -tulw.
19 февр. 2021 г.
 

Tìm kiếm

Back
Top