Windows 命令行界面 | UNIX 命令 | PowerShell Cmdlet | PowerShell 别名 |
---|---|---|---|
cd 、chdir | cd | Set-Location | sl 、cd 、chdir |
cls | clear | Clear-Host | cls clear |
copy | cp | Copy-Item | cpi 、cp 、copy |
del 、erase 、rd 、rmdir | rm | Remove-Item | ri 、del 、erase 、rd 、rm 、rmdir |
dir | ls | Get-ChildItem | gci 、dir 、ls |
echo | echo | Write-Output | write echo |
md | mkdir | New-Item | ni |
move | mv | Move-Item | mi 、move 、mi |
popd | popd | Pop-Location | popd |
pwd | Get-Location | gl 、pwd | |
pushd | pushd | Push-Location | pushd |
ren | mv | Rename-Item | rni 、ren |
type | cat | Get-Content | gc 、cat 、type |
08-31
1172
06-22
396