Command Line to quickly View computer port usage

Source: Internet
Author: User

TCP 0.0.0.0: 80 0.0.0.0: 0 LISTENING 2920
TCP 0.0.0.0: 135 0.0.0.0: 0 LISTENING 1356
TCP 0.0.0.0: 443 0.0.0.0: 0 LISTENING 1928
TCP 0.0.0.0: 445 0.0.0.0: 0 LISTENING 4
TCP 0.0.0.0: 1025 0.0.0.0: 0 LISTENING 1496
TCP 0.0.0.0: 1027 0.0.0.0: 0 LISTENING 776

-A displays all connection and listening ports.
-B: displays the information contained in creating each connection or listening port.
Executable components. Executable components are known in some cases
Has multiple independent components, and in these cases
Component sequence included in creating a connection or listening port
Displayed. In this case, the executable component name
In [] at the bottom, the top is the component it calls,
Wait until the TCP/IP part. Note this option
It may take a long time. If you do not have sufficient permissions
May fail.
-E displays Ethernet statistics. This option can be used with-s
Option combination.
-N: the address and port number are displayed in numbers.
-O displays the ID of the process associated with each connection.
-P proto shows the connection of the Protocol specified by proto; proto can be
One of the following protocols: TCP, UDP, TCPv6, or UDPv6.
If used together with the-s option to display statistics by Protocol, proto can be the following protocol
One:
IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, or UDPv6.
-R shows the route table.
-S displays statistics by protocol. By default, the IP address,
Statistics of IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, and UDPv6;
The-p option is used to specify the default subset.
-V and-B options will be included in
Create a connection or listener port for All executable Components
Component.
Interval re-displays the selected statistics.
Pause interval (in seconds ). Press CTRL + C to stop and restart
Displays statistics. If omitted, netstat displays the current
Configuration Information (only once)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.