How do you check if ports are open in Linux?

Minh Phượng

New member
How do you check if 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.
 

Tìm kiếm

Back
Top