WINDOWS一些常用CMD命令記錄(持續更新)

2021-09-24 19:28:30 字數 633 閱讀 5010

ps : 所有命令可以通過***  /? 來檢視該命令的用法

ctrl+c 停止正在執行的命令

操作符介紹

eq相等;ne、neq不相等;gt大於;lt小於;gte、ge大於等於;lte、le 小於等於;not非

只介紹某個命令的功能,每個命令的具體用法都可以通過命令視窗輸入*** /?來檢視幫助文件,非常詳細,不做搬運工了~~

1. 檢視埠占用

netstat -nao (n,a,o引數具體作用不祥,o會展示程序的pid)

2. 管道命令 |

3. 查詢字串 findstr

將這三個命令組合,可以查詢指定埠是否被占用

netstat -nao | findstr "8080" (雙引號可加可不加)

4. 檢視所有程序

tasklist  檢視所有程序

tasklist  /fi "pid eq 666"  檢視pid為666的程序

5. 殺死程序

taskkill

taskkill /im *** /f   /im表示通過程序名稱刷選,/f強制殺死

taskkill /pid *** /f   /pid表示通過程序pid刷選,/f強制殺死

6. 重定向命令 > (參考另一筆記)

一些常用的cmd命令

1.檢視手機當前cpu使用最高的前五個應用 adb shell 下鍵入top m 5 t 2.檢視手機當前的記憶體情況 adb shell 下鍵入 cat proc meminfo 鍵入dumpsys meminfo 就能檢視各個應用的記憶體使用情況 鍵入 dumpsys meminfo grep ...

mysql一些命令 mysql常用的一些命令

一 授權登入 參考grant all privileges on cacti.to hnf localhost identified by hnf 2014 只給cacti這個資料庫授權 grant all on to root localhost identified by huningfei 只...

windows下ThinkPHP5一些命名注意事項

和下面的訪問是等效的 和下面的訪問是等效的 http localhost index.php index blogtest readhttp localhost index.php index blog test read如果想要嚴格區分大小寫,則在config.php裡把url convert改為...