Ubuntu 21.10にpowershellをインストールする

1.OSバージョンの確認
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=21.10
DISTRIB_CODENAME=impish
DISTRIB_DESCRIPTION="Ubuntu 21.10″

2.powershellのインストール
# sudo snap install powershell –classic
powershell 7.2.0 from Microsoft PowerShell? installed

3.powershellをインストールします
# powershell
PowerShell 7.2.0
Copyright (c) Microsoft Corporation.

https://aka.ms/powershell
Type 'help’ to get help.

PS /root>

使い方の確認
PS /root> Get-Help

終了
PS /root> exit
Segmentation fault (コアダンプ)

Ubuntu 21.10

Posted by arkgame