Introduction
You want to know the differences between PowerShell, Bash, and CMD so you can pick the right tool for your tasks.
PowerShell: Uses cmdlets like Get-Process Bash: Uses commands like ls, grep CMD: Uses commands like dir, copy
PowerShell:
Get-Process | Where-Object {$_.CPU -gt 100}Bash: ps aux | grep firefox
CMD: tasklist | findstr firefox
Write-Output "PowerShell: List files" Get-ChildItem Write-Output "Bash: List files" # bash command: ls -l Write-Output "CMD: List files" # cmd command: dir
Get-Process | Where-Object { $_.CPU -gt 100 }ls -l | grep ".txt"
Pass the test and this pattern moves unknown