This week Microsoft announced that now PowerShell is open source and it also works on Linux and Mac.
This is possible because the PowerShell runs on the .NET Core, which is Microsoft’s new open-source framework for developing cross-platform applications. For details, see the article: Creating a .NET Core Console application in just 5 minutes.
PowerShell open source project is available at: https://github.com/PowerShell/PowerShell and alphas downloadable versions are available for the following operating systems:
After installation, simply type powershell in the prompt to run PowerShell. In the following picture, I ran the Get-Process cmdlet to list the running processes of Ubuntu machine:
So far there are 345 commands available cross-platform, being 210 cmdlets and 135 functions:
For more details, see the articles: