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

OSバージョンの確認
root@ubuntu:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=21.04
DISTRIB_CODENAME=hirsute
DISTRIB_DESCRIPTION="Ubuntu 21.04″

1.powershellをインストール
root@ubuntu:~# sudo snap install powershell –classic
powershell 7.1.4 from Microsoft PowerShell? installed

2.powershellを実行
root@ubuntu:~# powershell
PowerShell 7.1.4
Copyright (c) Microsoft Corporation.

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

PS /root>Get-Help
PS /root> Update-help

Ubuntu 21.04

Posted by arkgame