How to check open ports in linux


In the Linux operating system, you can use the firewall-cmd command line tool to view the ports that have been opened in the current system and the corresponding transmission types

This tutorial will teach you How to check open ports in linux

Command Line

View open UDP/TCP ports

firewall-cmd --list-ports --permanent

Parameter Description

firewall-cmda front-end tool for managing the firewalld daemon
--list-portsList ports added
--permanentSet an option permanently.

operation result



If you have any questions in use, you can leave a message below, or submit issuse on github ♥