This is not a comparison, but more like equivalent
Bash | Powershell |
---|---|
echo | Write-host |
pwd | Get-Location |
ls | Get-ChildItem |
cd | Set-Location |
cp | Copy-Item |
touch | New-Item |
mv | Move-Item |
rm | Remove-Item |
md | Make-Dir |
cat | Get-Content |
man | Get-Help |
Alias
Get-Alias
Create Aliases valid for the session only or save it in file.ps1 and set as PS loads
New-Alias/Set-Alias Goto Set-Location
$PsHome
path is different for 32bit and 64bit instances of PowerShell
For the 64bit environment:
C:\Windows\System32\WindowsPowerShell\v1.0
For the 32bit environment:
C:\Windows\System32\WindowsPowerShell\v1.0