Active Directory Products
Calls To Calendar
SMS To CSV
SMS To Gmail
Voicemail To Gmail
How Long For Me
<< Back To All Blogs
Some Useful Powershell commands for the Linux nerds out there
Tuesday, June 23rd, 2015
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.
Linux: tail -f:
Powershell: gc C:file.txt -Wait
Linux: tail -n10 file.txt
Powershell: gc file.txt | Select -last 10
Linux: head -n10 file.txt
Powershell: gc file.txt | select -first 10
Powershell: Select-String -Pattern my.pattern
Linux: wc -l file.txt
Powershell: gc file.txt | Measure-Object -Line
Linux: kill app.exe
Powershell: get-process app.exe | StopProcess
That's all for now!
Current file path in custom PowerShell Cmdlet
Determine Forest and Domain Functional Levels in Powershell
Uninstalling PowerShell V1.0 from Windows Server 2003
Using Remote Powershell
Customizing PowerShell for faster development with a default profile
Currently no comments.
Add A Comment
Email Address: (not public, used to send notifications on further comments)
Enter the text above, except for the 1st and last character: