How to view information about a specific port on Linux?

For example, TCP port / UDP port / process ID port occupied by the program  , etc. This information can be used:  netstat -atunlp | grep port number  to obtain such we want to get. 22 information port: 

 Here . 5 a meaning parameters are represented by: 

-a:  shows all connected ports

-t:  indicates display TCP port

-u:  specify display UDP port

-n:  display only listening socket ( LISTEN state of the socket)

-l:   display the process identifier and program name, and each socket / port belongs to a program

-p:  not DNS resolve

 

Guess you like

Origin www.cnblogs.com/aisowe/p/11415896.html
Recommended