Microsoft has also made PowerShell available for Linux and MacOS X on GitHub:
https://github.com/PowerShell/PowerShell
In addition to a DEB package for Ubuntu and an RPM for CentOS, a package for Mac OS X is also available for download.
Microsoft has published PowerShell under the MIT license. The Powershell for Linux is therefore open source.
I immediately tried out the DEB package for Ubuntu 16.04. The installation on an existing Ubuntu server is simple:
sudo apt-get install libunwind8 libicu55 sudo dpkg -i powershell_6.0.0-alpha.9-1ubuntu1.16.04.1_amd64.deb
I have previously copied the DEB file to my home directory via SCP. After installing the package, Powershell can simply be started with the "powershell" command:
Windows PowerShell scripts will of course not necessarily run directly under Linux, precisely because the paths are different:
This is a very early version of PowerShell, but a lot of CMDlets are already available. All commands can be displayed via "get-command":
Powershell scripts can also be executed under Linux, here is a small test:
I've only tested it briefly now, but I'm already impressed. I will continue to work with it, because I can already think of a whole host of applications.
Porno! Da hab ich elendig lang drauf gewartet, hätte im LEBEN nie dran gedacht, dass MS das für *NIX portieren würde…