Windows Utility Commands

Source: Internet
Author: User

Windows Utility Commands# Count the number of connections in the established state./C is the number of statistics rows,/I is ignored case
" established " /C
View Code

# count the number of connections in the TIME_WAIT state, usually used to determine if there is a CC attack ...

" time_wait " /C
View Code

# Refresh the DNS cache

Ipconfig/flushdns
View Code

# Export IP to C drive Ip.txt

Netsh-c interface IP Dump > c:\ip.txt
View Code

# do route tracking for 192.168.0.1

Tracert 192.168.0.1
View Code

# View native IPv4 routing table

Route print-4
View Code

# View native IPv6 routing table

Route print-6
View Code

# View a list of native interfaces

Route print Interfaceroute Print no interface
View Code

# Add route

Route ADD 10.35.10.0 MASK 255.255.255.0 10.35.10.104 [METRIC METRIC] [IF Interface]
View Code

# Modify the route, change can only be used to modify the gateway and metric

Route change 10.35.10.0 MASK 255.255.255.0 10.35.10.104 [METRIC METRIC] [IF Interface]
View Code

# Delete route

Route DELETE 10.35.10.0
View Code

# Detailed route command format

ROUTE [-F] [ -4|-6] command [destination] [MASK netmask] [gateway] [METRIC METRIC] [IF  interface]-F  : Clears the routing table for all gateways. If used in conjunction with a command, clear the routing table -4 : ForceThe use of IPv4-6: Force the use of ipv6command    Print: Print routing add    : Add route    before running the command Delete: Delete route    change: Modify existing route destination: Target host Mask: Specifies the next parameter is the netmask value netmask:  255.255.255.255Gateway : Specify Gateway Interface: Specifies the interface number of the route metric: Specifies the metric, such as the cost of the target
View Code

Windows Utility Commands

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.