r/sysadmin • u/ramblingcookiemonste Systems Engineer • Aug 18 '16
PowerShell is open source, available for Linux and OS X
https://github.com/PowerShell/PowerShell
1.3k
Upvotes
r/sysadmin • u/ramblingcookiemonste Systems Engineer • Aug 18 '16
9
u/jimicus IT Manager Aug 18 '16
I think that's essentially the point.
.NET integrates very nicely with Windows because Windows itself is object-oriented.
Linux isn't. Linux treats everything as a stream of text. Application configuration, OS configuration - very few of these tasks were designed around OO ideas.
Which realistically means the Linux .NET implementation (and hence the Linux Powershell implementation) will either:
Never give you complete access to all the things that go on under the hood in the same way it does on Windows OR:
It will, but as soon as you do something outside the .NET framework you'll be manipulating plain text files in Powershell (which somewhat eliminates 90% of the goodness Powershell offers) OR:
Implement a shim layer that makes the non-OO land of Linux look OO to anything using .NET. (Which is going to be an unholy mess of incompatibilities and incompleteness because we can't realistically expect the various applications in Linux to start to account for this sort of thing when them implement new features, and I think even Microsoft would be hard-pressed to blag sufficient resources to implement modules that manage Apache, Nginx, Samba, Postgres, MySQL, Postfix and OpenLDAP using the same syntax as the existing modules that manage SQL Server, IIS, Exchange, Active Directory, etc etc)