Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the command to view ports in the linux system

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Today, what the editor shares with you is what the port command is in the linux system. I believe many people don't know much about it. In order to let you know more about the port command in the linux system, we summarize the following contents and let's look down together. I'm sure you'll get something.

What is the linux View Port command?

Linux View Port command

The first kind:

Lsof-I: Port number

The second kind:

Netstat-nltp | grep port number

-a: displays all connected and monitored ports on this machine

-n: the form of the network IP address, showing the currently established valid connections and ports

-r: displays routing table information

-s: displays statistics by protocol

-v: displays currently valid connections

-t: displays all TCP protocol connections

-u: displays all UDP protocol connections

-I: displays the status of the auto-configured port

-l: only displays the status of the service network with a connection status of listening

-p: display pid/program name

Several states of TCP connection

ESTABLISHED established CLOSED closed LISTENING is listening FIN-WAIT-2 is waiting for connection to close TIME-WAIT wait enough time to ensure that the server closes the connection normally

The above is the linux system to see what the port command is a brief introduction, of course, the detailed use of the above differences have to be used by everyone to understand. If you want to know more, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report