PowerShell代表WindowsPowerShell。在开发之初,微软将其命名为Monad。它首先是一个Shell,可以启动和操作应用程序;其次,PowerShell还可以将多个命令组合起来,在一个文件中执行;同时,PowerShell还可以充分利用.Net和COM对象与各种系统进行交互,完成各种复杂的自动化操作。PowerShell这个原本只适用于Windows的组件,于2016年8月18日开源,成为一款跨平台软件,登陆Linux和macOS。今天,你可以在GitHub上下载,体验PowerShell和它的开源态度;当然你也可以在开源网站上下载学习PowerShell库。微软的纳德拉说:我爱Linux,你觉得这东西靠谱吗?最好先尝试一下。在Linux系统上安装PowerShellUbuntu14.04curlhttps://packages.microsoft.com/keys/microsoft.asc|sudoapt-keyadd-curlhttps://packages.microsoft.com/config/ubuntu/14.04/prod.list|sudotee/etc/apt/sources.list.d/microsoft.listsudoapt-get更新sudoapt-getinstall-ypowershellpowershellUbuntu16.04curlhttps://packages.microsoft.com/keys/microsoft.asc|sudoapt-keyadd-curlhttps://packages.microsoft.com/config/ubuntu/16.04/prod.list|sudotee/etc/apt/sources.list.d/microsoft.listapt-getupdateapt-getinstall-ypowershellpowershellCentOS7sudocurlhttps://packages.microsoft.com/config/rhel/7/prod。repo>/etc/yum.repos.d/microsoft.reposudoyuminstall-ypowershellDebianKali下载PowerShell-x86_64.AppImagechmod+xPowerShell-x86_64。AppImage./PowerShell-x86_64.AppImage获取PowerShell命令列表get-command查看命令帮助get-help命令如get-helpGet-Processget-helpGet-Process
