powershell 中常用cmd,unix命令(get-alias)

Posted Rosendolu

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了powershell 中常用cmd,unix命令(get-alias)相关的知识,希望对你有一定的参考价值。

powershell 中常用cmd,unix命令(get-alias)

  • Get-Content
    • Alias cat -> Get-Content
    • Alias gc -> Get-Content
    • Alias type -> Get-Content
  • set-location
    • Alias cd -> Set-Location
    • Alias chdir -> Set-Location
    • Alias sl -> Set-Location
  • clear-host
    • Alias clear -> Clear-Host
    • Alias cls -> Clear-Host
  • copy-item
    • Alias copy -> Copy-Item
    • Alias cp -> Copy-Item
    • Alias cpi -> Copy-Item
  • remove-item
    • Alias del -> Remove-Item
    • Alias erase -> Remove-Item
    • Alias rd -> Remove-Item
    • Alias ri -> Remove-Item
    • Alias rm -> Remove-Item
    • Alias rmdir -> Remove-Item
  • compare-object
    • Alias compare -> Compare-Object
    • Alias diff -> Compare-Object
  • get-childitem
    • Alias dir -> Get-ChildItem
    • Alias gci -> Get-ChildItem
    • Alias ls -> Get-ChildItem
  • write-output
    • Alias echo -> Write-Output
    • Alias write -> Write-Output
  • get-history
    • Alias ghy -> Get-History
    • Alias h -> Get-History
    • Alias history -> Get-History
  • stop-process
    • Alias kill -> Stop-Process
    • Alias spps -> Stop-Process
  • move-item
    • Alias mi -> Move-Item
    • Alias move -> Move-Item
    • Alias mv -> Move-Item
  • get-location
    • Alias gl -> Get-Location
    • Alias pwd -> Get-Location
  • get-process
    • Alias gps -> Get-Process
    • Alias ps -> Get-Proces
  • rename-item
    • Alias ren -> Rename-Item
    • Alias rni -> Rename-Item
  • tee-object
    • Alias tee -> Tee-Object

名词或谓词 缩写

  • Get => g
  • Set => s
  • Item => i
  • Location => l
  • Command => cm
  • Alias => al

examples

# get-content
get-alias -definition get-content
# help
get-help get-content

以上是关于powershell 中常用cmd,unix命令(get-alias)的主要内容,如果未能解决你的问题,请参考以下文章

powershell cmd 常用命令

windows powershell的常用命令

PowerShell中常用的网络命令: 等效IPConfigPING 和 NSLookup

Windows 常用DOS命令

常用PowerShell命令

Powershell -Window下比cmd.exe更具可读性易用性可面向对象的命令行客户端