I often find myself looking for a few commands I drastically miss from linux in the Windows world. Pretty basic but here they are listed by their equal parts between Linux and Windows Powershell.

Note: Below I reference gc which is an alias for Get-Content. They can be interchanged.

active tail

tail -f file.txt
gc file.txt -Wait

tail last 10

tail -n10 file.txt
gc file.txt | Select -last 10

head first 10

head -n10 file.txt
gc file.txt | select -first 10


grep my.pattern
Select-String -Pattern my.pattern

word count

wc -l file.txt
gc file.txt | Measure-Object -Line

Process Listing


Kill Process

kill app.exe
get-process app.exe | StopProcess