码迷,mamicode.com
首页 > 系统相关 > 详细

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

时间:2019-02-08 23:18:41      阅读:270      评论:0      收藏:0      [点我收藏+]

标签:init   unix   shel   pre   location   power   stop   comm   tput   

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)

标签:init   unix   shel   pre   location   power   stop   comm   tput   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!