tutorial for powershell- an amazing coding language

PowerShell结合了Unix命令与自己的cmdlets,支持Unix命令如ls、pwd等,提供丰富的别名和内置工具。使用Get-Help可获取帮助信息,管道操作|用于传递命令结果。PowerShell中的所有都是对象,可以通过成员类型检查属性和方法。它适用于远程管理和服务器集群控制,但处理文件可能不如Unix方便。
摘要由CSDN通过智能技术生成

P1:
Introduction to Powershell
The beauty of Powershell:

  • it is compatible to unix commands and at the same time created its own-style commands called ‘cmdlets’ featuring Verb-Noun.

  • If you are a linux-user before, you can also use the commands, like ls, pwd, mv etc.

  • those commands also have alias in powershell
    you can use get-alias to check all the alias of commands in powershell
    get-alias , in short, gal
    if you want check the alias of one specific unix commands, you could typegal command
    example:

     gal ls 
     CommandType    Name                Version    Source                                         
    -----------     -----                ------     ------                                                   
    Alias           ls -> Get-ChildItem
    

If you want to know more details about one specific command,you can type:
get-help ls -Detailed
get-alias -Definition Get-ChildItem
若要查看示例,请键入: “get-help Get-ChildItem -examples”.
有关详细信息,请键入: “get-help Get-ChildItem -detailed”.
若要获取技术信息,请键入: “get-help Get-ChildItem -full”.
有关在线帮助,请键入: "get-help Get-ChildItem -online
get-help Get-ChildItem -showWindow

  • by the way, wildcard(通配符) is also compatible in powershell

  • One thing I think it’s so cool about powershell is that you could use tools,like notepad,calculation etc by just typing notepad</

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值