How to check open ports in linux
Introduction
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
parameter | Introduction |
---|---|
firewall-cmd | a front-end tool for managing the firewalld daemon |
--list-ports | List ports added |
--permanent | Set an option permanently. |
operation result
8080/tcp
Notice
If you have any questions in use, you can leave a message below, or submit issuse on github ♥