Export (0) Print
Expand All

Appendix 1 - Compatibility Aliases

Updated: October 17, 2013

Applies To: Windows PowerShell 2.0, Windows PowerShell 3.0, Windows PowerShell 4.0

Windows PowerShell has several transition aliases that allow UNIX and Cmd users to use familiar command names in Windows PowerShell. The most common aliases are shown in the table below, along with the Windows PowerShell command behind the alias and the standard Windows PowerShell alias if one exists.

You can find the Windows PowerShell command that any alias points to from within Windows PowerShell by using the Get-Alias cmdlet. For example, type get-alias cls.

CommandType     Name                            Definition
-----------     ----                            ----------
Alias           cls                             Clear-Host

 

CMD Command UNIX Command PS Command PS Alias

dir

ls

Get-ChildItem

gci

cls

clear

Clear-Host (function)

N/A

del, erase, rmdir

rm

Remove-Item

ri

copy

cp

Copy-Item

ci

move

mv

Move-Item

mi

rename

mv

Rename-Item

rni

type

cat

Get-Content

gc

cd

cd

Set-Location

sl

md

mkdir

New-Item

ni

N/A

pushd

Push-Location

N/A

N/A

popd

Pop-Location

N/A



Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft