Windows Small Commands Simple grooming

Source: Internet
Author: User

1. View the current port number

Netstat-an

Command help:

>netstat--help

2. Filter

>NETSTAT-AN|FINDSTR 443

Use the following command to find the PID (process ID) that occupies the specified port

NETSTAT-ANO|FINDSTR < specified port number >

NETSTAT-ANO|FINDSTR 443--View process number can be killed in Task Manager

C:\USERS\ADMINISTRATOR>NETSTAT-AN|FINDSTR 443

TCP 0.0.0.0:443 0.0.0.0:0 LISTENING

TCP 192.168.1.243:49362 119.147.207.172:443 established

TCP 192.168.1.243:54871 153.35.88.181:443 established

TCP 192.168.1.243:54872 221.5.10.204:443 established

TCP 192.168.1.243:54882 125.39.135.242:443 established

TCP 192.168.1.243:54884 140.205.134.25:443 established

TCP 192.168.1.243:55188 74.125.204.113:443 syn_sent

TCP 192.168.1.243:55189 74.125.204.113:443 syn_sent

TCP 192.168.1.243:55190 74.125.204.101:443 syn_sent

TCP 192.168.1.243:55191 74.125.204.101:443 syn_sent

TCP [::]:443 [::]:0 LISTENING


C:\users\administrator>

Kill process

So how do we kill the process?

Taskkill/pid 7580/f

3. If you want to see which process a process is specific, you can use the following command

tasklist | Findstr "5584" (note 5584 is the process ID that is PID)


Keep Finishing ...


This article is from the "Ningzhiyuan @it sharing" blog, make sure to keep this source http://renzhiyuan.blog.51cto.com/10433137/1827728

Windows Small Commands Simple grooming

Related Article

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.