Showing posts with label Command. Show all posts
Showing posts with label Command. Show all posts

Friday, May 26, 2023

Windows Process useful commands

 

windows find port usage

netstat -aon | findstr<port_number>

eg: netstat -ano | findstr 8081


windows check details of process id

tasklist /fi "pid eq <process id>"

eg: tasklist /fi "pid eq 4716"


Kill Process forcefully

taskkill /im myprocess.exe /f

The "/f" is for "force". If you know the PID, then you can specify that, as in:

taskkill /pid 4716 /f

Thursday, August 16, 2018

windows command : findstr


1.       Check pattern start at beginning
h\s1>findstr /b /c:"2017-01-31 11:37:35,85" Test.txt

/b    = from beginning
/c:  = give search string