First of all, simply don’t believe anyone who says that it’s hard to install Powershell on Linux.
Installing on a Red Hat clone (eg. Centos 8)
This wont take long.
curl https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo
sudo yum install -y powershell
That’s it
Installing on Ubuntu 20.04 and above
sudo snap install powershell --classic
Again, that’s it.
In both cases you can then launch the shell via :
$ pwsh
PowerShell 7.2.0
Copyright (c) Microsoft Corporation.
https://aka.ms/powershell
Type 'help' to get help.
PS /home/gocallag>