Dos命令

1. 进程查询与关闭

1.1. 命令行模糊查询进程

tasklist -fi “imagename eq chrom*”

1.2. 模糊关闭进程

taskkill /F -im chrom*

1.3. 查看端口占用

tasklist|findstr "2448"

1.4. 查看端口占用的pid

netstat -ano | findstr :8080

1.5. 通过pid 查找 进程名称

tasklist | findstr 2448

2. 文件操作

2.1. wondows获取文件的md5值

打开powershell,输入文件路径

Get-FileHash <your-file-path> -Algorithm MD5

img

posted @ 2023-02-11 22:01  God-slayer  阅读(61)  评论(0)    收藏  举报