如何在Ubuntu 20.04焦点罗莎Linux上安装PowerShell

本文的目标是在Ubuntu 20.04 Focusa Linux上安装Microsoft PowerShell。
PowerShell是一个任务自动化和配置管理框架,其中包括PowerShell脚本语言。

执行下面命令进行安装

$ snap install powershell --classic

在终端运行pwsh命令启动powershell:

$ pwsh 
PowerShell 6.2.3
Copyright (c) Microsoft Corporation. All rights reserved.
https://aka.ms/pscore6-docs
Type 'help' to get help.
日期:2020-07-07 20:55:28 来源:oir作者:oir