Windows PowerShell 具有几个转换别名,允许 UNIX 和 Cmd 用户在 Windows PowerShell 中使用熟悉的命令名称。下表列出了最常用的别名以及别名背后的 Windows PowerShell 命令和标准的 Windows PowerShell 别名(如果存在)。

使用 Get-Alias cmdlet 可以从 Windows PowerShell 中查找任何别名所指向的 Windows PowerShell 命令。例如,键入 get-alias cls

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

CMD 命令 UNIX 命令 PS 命令 PS 别名

dir

ls

Get-ChildItem

gci

cls

clear

Clear-Host(函数)

不可用

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

不可用

pushd

Push-Location

不可用

不可用

popd

Pop-Location

不可用




目录