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
05-11 03:05