Windows (powershell) counterparts of Linux commands
You may find Windows mostly powershell equivalent of frequently used Linux commands here.
I will update this post, with newer ones by the time…
tail -100f <file mask>
Via powershell, without installing new software, you may issue below command for refreshing the alert log and seeing last 100 rows displayed in the very beginning.
Get-Content alertmydb.log -Wait -tail 100
history
For history of commands executed simply issue.
Get-History
grep
select-string <string to look for> <file name>
find
Find the files having a mask alert*log up to 5 directories depth.
gci -Path alert*log -Recurse -Depth 5
Recent Comments