Powershell - nimrody/knowledgebase GitHub Wiki
-
time equivalent
Measure-Command { ... }
-
Who is using port XXX
Get-Process -Id (Get-NetTCPConnection -LocalPort XXX).OwningProcess
-
Netstat equivalent - get listening ports
Get-NetTCPConnection -State Listen
-
Get IP of every interface
Get-NetIPConfiguration
-
search for files (find equivalent)
Get-ChildItem -Path .\dev\ -Filter nitro -Recurse
-
Search in command output textually (like | grep)
dir | out-string -stream | select-string text-to-search
-
Find executable (which)
Get-Command java
-
VisualVM from powershell
.\bin\visualvm.exe --jdkhome 'C:\Program Files\Zulu\zulu-8'