PowerShell as cmd.exe or Bash

By Xah Lee. Date: . Last updated: .

PowerShell has many aliases or functions that has the same name as commands in cmd.exe or bash.

If you are familiar with cmd.exe or bash, you can start using PowerShell as replacement.

PowerShell command names are not case sensitive

PowerShell command names are not case sensitive.

Help

Help
full namecmd.exebash
Get-Helphelpman

Path Manipulation

Path Manipulation
full namecmd.exebash
Set-Locationcd, chdircd
Get-Locationecho %cd%pwd
Get-ChildItemdirls
Push-Locationpushdpushd
Pop-Locationpopdpopd

File Manipulation

File Manipulation
full namecmd.exebash
Copy-Itemcopycp
Remove-Itemdel, erase, rmdir, rdrm, rmdir
Rename-Itemren, renamemv
Move-Itemmovemv

Text Processing

Text Processing
full namecmd.exebash
Get-Contenttypecat
Select-Stringfind, findstrgrep

Environment Variable

env var Manipulation
full namecmd.exebash
Write-Outputechoecho
Set-Variablesetset

Process Management

Process Management
full namecmd.exebash
Get-Processtlist, tasklistps
Stop-Processkill, taskkillkill

For more complex unix commands, see: PowerShell vs Bash

If you have a question, put $5 at patreon and message me.

PowerShell

xah powershell logo