首页 > 系统服务 > 详细

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

时间:2019-02-08 23:15:24      阅读:256      评论:0      收藏:0      [点我收藏+]

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)

原文:https://www.cnblogs.com/rosendolu/p/10356934.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!