PowerShell#
PowerShell looks like a great scripting language but is incredibly verbose for a shell. (The solution is to use autocomplete which works I guess.)
- Removing a file:
cmd:
delsh:
rmPowerShell:
Remove-Item -Path <path>
- Printing environment variables:
cmd:
setsh:
printenvPowerShell
Get-Item env:
- Deleting a directory:
cmd:
rmdir /S /Q <dir>sh:
rm -rf <dir>PowerShell:
Remove-Item -Path <path> -Recurse