Microsoft releases PowerShell for Linux and MacOS X

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.

image

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

Linux

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:

image

Windows PowerShell scripts will of course not necessarily run directly under Linux, precisely because the paths are different:

image

This is a very early version of PowerShell, but a lot of CMDlets are already available. All commands can be displayed via "get-command":

image

Powershell scripts can also be executed under Linux, here is a small test:

image

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.

1 thought on “Microsoft veröffentlicht PowerShell für Linux und MacOS X”

  1. Porno! Da hab ich elendig lang drauf gewartet, hätte im LEBEN nie dran gedacht, dass MS das für *NIX portieren würde…

    Reply

Leave a Comment