Ubuntu:安装Powershell

Powershell的安装与使用:

1)安装Powershell:在终端依次运行以下命令即可:

$ sudo apt-get update
$ sudo apt-get install -y wget apt-transport-https software-properties-common
$ wget -q "https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb"
$ sudo dpkg -i packages-microsoft-prod.deb
$ sudo apt-get update
$ sudo apt-get install -y powershell

Ubuntu:安装Powershell_第1张图片

2) 使用powershell:在终端输入pwsh,即可使用~

pwsh

Ubuntu:安装Powershell_第2张图片

参考:在Linux中开始使用PowerShell[新手指南] - 知乎

你可能感兴趣的:(Ubuntu,ubuntu,linux)